|
|
| Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
| version 1.63, 2008/01/13 11:03:04 | version 1.64, 2008/01/20 12:43:00 | ||
|---|---|---|---|
|
|
||
| movl $1,%eax # return 1 | movl $1,%eax # return 1 | ||
| ret | ret | ||
| ENTRY(dumpsys) | |||
| # mimic cpu_switchto() for postmortem debugging. | |||
| # build a fake switch frame. | |||
| pushl %ebx | |||
| pushl %esi | |||
| pushl %edi | |||
| # save a context. | |||
| movl $dumppcb,%eax | |||
| movl %esp,PCB_ESP(%eax) | |||
| movl %ebp,PCB_EBP(%eax) | |||
| call _C_LABEL(dodumpsys) | |||
| addl $(3*4), %esp # sizeof(switchframe) - sizeof(%eip) | |||
| ret | |||
| /* | /* | ||
| * struct lwp *cpu_switchto(struct lwp *oldlwp, struct newlwp, | * struct lwp *cpu_switchto(struct lwp *oldlwp, struct newlwp, | ||
| * bool returning) | * bool returning) |