int
)%idtr
: point to the base address of IDTss0
& esp0
iret
: user → kerneldiv 1 0
: user → kernel
idivl
againb vector0
x/6x $esp
when entering kernelstruct trapframe
man signal
int z = 0; ticks = ticks / z;
to idtinit()
b vector0
x/6x $esp
eip
/cs
/eflags
; no ss
/esp
for kernel → kerneldiv.c
: memset
somethingb vector14
x/6x $esp
kern/trap.c
int 0x40
(64)usys.S
(user) and syscall.c
(kernel)gcc -nostdlib
strace
sysenter
/syscall
instructions (lab3 challenge)gettimeofday
int
int $14
from user space to confuse the kernel?