This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [again] switch() statements on ARM/Thumb


>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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]