version 1.95.10.2.4.1, 2017/08/08 11:55:20 |
version 1.95.10.3, 2012/10/31 17:19:49 |
|
|
END(savectx) |
END(savectx) |
|
|
/* |
/* |
|
* osyscall() |
|
* |
|
* Old call gate entry for syscall |
|
*/ |
|
IDTVEC(osyscall) |
|
#ifndef XEN |
|
/* XXX we are in trouble! interrupts be off here. */ |
|
cli # must be first instruction |
|
#endif |
|
pushfl # set eflags in trap frame |
|
popl 8(%esp) |
|
orl $PSL_I,8(%esp) # re-enable ints on return to user |
|
pushl $7 # size of instruction for restart |
|
jmp syscall1 |
|
IDTVEC_END(osyscall) |
|
|
|
/* |
* syscall() |
* syscall() |
* |
* |
* Trap gate entry for syscall |
* Trap gate entry for syscall |
*/ |
*/ |
IDTVEC(syscall) |
IDTVEC(syscall) |
pushl $2 # size of instruction for restart |
pushl $2 # size of instruction for restart |
|
syscall1: |
pushl $T_ASTFLT # trap # for doing ASTs |
pushl $T_ASTFLT # trap # for doing ASTs |
INTRENTRY |
INTRENTRY |
STI(%eax) |
STI(%eax) |