crt0: use stosb not zero and mov
authorAlan Cox <alan@linux.intel.com>
Thu, 19 Oct 2017 22:00:20 +0000 (23:00 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 19 Oct 2017 22:00:20 +0000 (23:00 +0100)
Z80 programmer escaped into x86

Kernel/platform-ibmpc/crt0.S

index 3cc219c..fce2fea 100644 (file)
@@ -17,9 +17,9 @@ start:
        movw    $__bss_start+1,%di
        movw    $__end,%cx
        subw    $__bss_start+1,%cx
-       movb    $0,(%si)
+       xorb    %al,%al
        rep
-       movsb
+       stosb
 
        call    init_early
        call    init_hardware