19. prev
context_switch: task_struct
context_switch()
……
$1f thread.eip
esi
thread.esp
switch_to: prev edi
ebp
movl $1f, prev->thread.eip next
task_struct
context_switch()
pushl next->thread.eip
esi $1f thread.eip
__switch_to:
s tc to: edi thread.esp
thread esp
next
………
ebp
esp $1f
ret
next
context_switch()
1: esi
eip
edi
ebp
$1f
19 4 - ¯ 2003 (c)