> >Also isn't checking the SWI constant expensive? You
> >pollute your data cache with code, why check this when the syscall number
> >is in a register?
> 
> The syscall number isn't in a register for the Linux/ARM syscall standard.  

        Ah I was looking at a later called function not the entry point.
This could actually cause a problem for us with L4/Linux on ARM. L4 is
using r0 as the syscall number so we'd have probablems supporting
unmodified binaries since we ignore the SWI imediate for the reasons I
mentioned before.

> With hindsight that was probably a mistake though we need to check it anyway
> for compatibility with BSD, RISC OS and so on.  The way I plan to do 
> Linux/Thumb we will indeed put the syscall number in a register and ignore 
> the comment field.

        Linux/Thumb? How will this differ from current Arm/Linux? Will the
kernel contain thumb code or only support user thumb code?

        Cheers Adam

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to