]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Pass NULL as second argument to netbsd reboot syscall
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 20 Jan 2010 10:12:45 +0000 (11:12 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 20 Jan 2010 10:12:45 +0000 (11:12 +0100)
tests/boot/knetbsd.init-i386.S
tests/boot/knetbsd.init-x86_64.S

index 200aed01f685d49c1b6797ceac176fcdfe179b5a..c751421bacf6804c632df59ed34ed8cc386138f8 100644 (file)
@@ -78,7 +78,7 @@ _start:
 
        /* shutdown.  */
        movl $SYSCALL_RESET, %eax
-       pushl $haltmsg
+       pushl $0
        pushl $(RESET_POWEROFF|RESET_HALT|RESET_NOSYNC)
        pushl $0
        int $SYSCALL_INT
@@ -107,9 +107,6 @@ device:
 message:
        .ascii "Boot Test Passed Successfully\n" SUCCESSFUL_BOOT_STRING "\n"
 messageend:
-haltmsg:
-       .ascii "Machine halted"
-       .byte 0
 devfstype:
        .ascii "tmpfs"
        .byte 0
index e56174f9c30749c153d3392a8c07cd75c1c5a50e..dfc64e99d9ced68bf8be05995429f30beabe57bd 100644 (file)
@@ -67,7 +67,7 @@ _start:
        /* shutdown.  */
        movq $SYSCALL_RESET, %rax
        movq $(RESET_POWEROFF|RESET_HALT|RESET_NOSYNC), %rdi
-       movq $haltmsg, %rsi
+       movq $0, %rsi
        syscall
 
        /* exit (1). Shouldn't be reached.  */
@@ -92,9 +92,6 @@ device:
 message:
        .ascii "Boot Test Passed Successfully\n" SUCCESSFUL_BOOT_STRING "\n"
 messageend:
-haltmsg:
-       .ascii "Machine halted"
-       .byte 0
 devfstype:
        .ascii "tmpfs"
        .byte 0