Skip to contentSkip to conversation

what's a fast syscall

DISCUSSION Bob 1 participant 1 message Dec 11, 2008

lore
Share & tools
lore

Bob

author
#0 lore raw

Hi, all

I have read the code about syscall in file entry.S and didn't known what's a fast syscall.

And why line 1322 can distinguish it through "andcc" (there %l7 is the sys_* funtions' address?) ?

Thanks .

1313 .globl linux_sparc_syscall
1314linux_sparc_syscall:

1315        sethi   %hi(PSR_SYSCALL), %l4
1316        or      %l0, %l4, %l0
1317        /* Direct access to user regs, must faster. */
1318        cmp     %g1, NR_SYSCALLS
1319        bgeu    linux_sparc_ni_syscall
1320         sll    %g1, 2, %l4
1321        ld      [%l7 + %l4], %l7
1322        andcc   %l7, 1, %g0
1323        bne     linux_fast_syscall

1324 /* Just do first insn from SAVE_ALL in the delay slot */

---
Best regards

Bo Liu
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx