what's a fast syscall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux