[BACK]Return to locore.S CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / i386 / i386

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/i386/i386/locore.S between version 1.58.6.7 and 1.66

version 1.58.6.7, 2008/01/20 17:51:18 version 1.66, 2008/01/23 19:46:44
Line 883  ENTRY(longjmp)
Line 883  ENTRY(longjmp)
         movl    $1,%eax                 # return 1          movl    $1,%eax                 # return 1
         ret          ret
   
   /*
    * void dumpsys(void)
    *
    * Mimic cpu_switchto() for postmortem debugging.
    */
 ENTRY(dumpsys)  ENTRY(dumpsys)
         # mimic cpu_switchto() for postmortem debugging.          pushl   %ebx                    # set up fake switchframe
           pushl   %esi                    #   and save context
         # build a fake switch frame.          pushl   %edi
         pushl   %ebx          movl    %esp,_C_LABEL(dumppcb)+PCB_ESP
         pushl   %esi          movl    %ebp,_C_LABEL(dumppcb)+PCB_EBP
         pushl   %edi          call    _C_LABEL(dodumpsys)     # dump!
           addl    $(3*4), %esp            # unwind switchframe
         # 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          ret
   
 /*  /*

Legend:
Removed from v.1.58.6.7  
changed lines
  Added in v.1.66

CVSweb <webmaster@jp.NetBSD.org>