[again] switch() statements on ARM/Thumb

Philip Blundell pb@nexus.co.uk
Thu Jan 10 07:57:00 GMT 2002


>Does linux support using swi 0 in thumb code as meaning something like
>- SWI code is now in r0
>- Other arguments are shuffled down one register.

Linux never looks at the SWI comment field in thumb code.  It expects the
system call number in R7 or some similarly high register, and args in R0
upwards as normal.

Adrian is targeting ucLinux, though, which may not be able to cope with
syscalls in Thumb mode at all.  I dunno exactly what the current state of
the art is there.

p.



More information about the Gcc-patches mailing list