savectx() is now used exclusively by the crash dump system. Move the

i386 specific gunk (copy %cr3 to the pcb) from the MI dumpsys() to the
MD savectx().
This commit is contained in:
Peter Wemm 2000-10-13 22:03:29 +00:00
parent 736f03e49a
commit ac5f943c37
4 changed files with 9 additions and 3 deletions

View File

@ -381,6 +381,9 @@ ENTRY(savectx)
movl (%esp),%eax
movl %eax,PCB_EIP(%ecx)
movl %cr3,%eax
movl %eax,PCB_CR3(%ecx)
movl %ebx,PCB_EBX(%ecx)
movl %esp,PCB_ESP(%ecx)
movl %ebp,PCB_EBP(%ecx)

View File

@ -381,6 +381,9 @@ ENTRY(savectx)
movl (%esp),%eax
movl %eax,PCB_EIP(%ecx)
movl %cr3,%eax
movl %eax,PCB_CR3(%ecx)
movl %ebx,PCB_EBX(%ecx)
movl %esp,PCB_ESP(%ecx)
movl %ebp,PCB_EBP(%ecx)

View File

@ -381,6 +381,9 @@ ENTRY(savectx)
movl (%esp),%eax
movl %eax,PCB_EIP(%ecx)
movl %cr3,%eax
movl %eax,PCB_CR3(%ecx)
movl %ebx,PCB_EBX(%ecx)
movl %esp,PCB_ESP(%ecx)
movl %ebp,PCB_EBP(%ecx)

View File

@ -473,9 +473,6 @@ dumpsys(void)
int error;
savectx(&dumppcb);
#ifdef __i386__
dumppcb.pcb_cr3 = rcr3();
#endif
if (dumping++) {
printf("Dump already in progress, bailing...\n");
return;