Skip to contentSkip to conversation

what's a fast syscall

DISCUSSION David Miller 1 participant 1 message Dec 11, 2008

lore
Share & tools
lore
#0 lore raw

From: Bob <[email protected]>
Date: Thu, 11 Dec 2008 15:16:17 +0800

Quoted 5 lines

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?) ?

We used to have fast syscall handlers that ran directly in assembler without doing a trap entry and exit which is normally necessary to call the normal C code implementations.

The way this was distinguished was by setting the low bit in the syscall table entry. Since all Sparc instructios must be 4 byte aligned, this works. We just need to clear that bit before jumping to the address.

Fast syscalls were removed a long time ago, but the support code still lives :)