int
)%idtr
: point to the base address of IDTss0
& esp0
iret
div 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 -m32
strace