]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Don't check for a NULL curthread. curthread hasn't been NULL after early
authorjhb <jhb@FreeBSD.org>
Sun, 2 Nov 2014 19:54:10 +0000 (19:54 +0000)
committerjhb <jhb@FreeBSD.org>
Sun, 2 Nov 2014 19:54:10 +0000 (19:54 +0000)
boot since 5.0.

sys/i386/i386/vm86bios.s

index db8aea09d6b2eed9b14609ebdc5ba92e5ec41071..450374e662248b4989f19b482d0b08e4cf715318 100644 (file)
@@ -69,8 +69,6 @@ ENTRY(vm86_bioscall)
        movl    PCPU(CURTHREAD),%ecx
        cmpl    %ecx,PCPU(FPCURTHREAD)  /* do we need to save fp? */
        jne     1f
-       testl   %ecx,%ecx
-       je      1f                      /* no curproc/npxproc */
        pushl   %edx
        movl    TD_PCB(%ecx),%ecx
        pushl   PCB_SAVEFPU(%ecx)