Jens-Christian Lache writes:
> Could somebody please mail me the file
> "linux_arch_arm_boot_compressed_head-sa1100.S.html" ?

That is from a very old version of Linux and is no more.  Also, if I mail
it, do you agree to release your derived work under the GPL?

> I want to write two functions "enterCriticalSection" and
> "exitCriticalSection". The first is supposed to save the old 
> CPSR, dissable int and return the CPSR. But: I can only use 
> mrs and mrs when in superuser mode. To go there I tried:
> 
>   asm volatile ("mov r0, #angel_SWIreason_EnterSVC");
>   asm volatile ("swi #angel_SWI_ARM": : :"r0","r1","r2","r3");
> 
> The EnterSVC function from Angel does also dissable int. So how do
> I get the old CPSR?

Firstly, it is better to glue those two instructions together so you give
GCC no chance to drop any instructions between them that might corrupt
r0.

Are you sure that you want to tie your OS to angel btw?
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        Russell King       [EMAIL PROTECTED]      --- ---
  | | | |            http://www.arm.linux.org.uk/            /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to