Skip to contentSkip to conversation

Intel P6 vs P7 system call performance

DISCUSSION [email protected] 1 participant 1 message Dec 19, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines · Richard B. Johnson

Because the number pushed onto the stack is a displacement, not an address, i.e., -4095. To have the address act as an address, you need to load a full-pointer, i.e. SEG:OFFSET (like the old 16-bit days). The offset is 32-bits and the segment is whatever the kernel has set up for __USER_CS (0x23). All the 'near' calls are calls to a signed displacement, same for jumps.

call's and jmp's use displacement, ret's are _always_ absolute.