Pass NULL as second argument to netbsd reboot syscall
This commit is contained in:
parent
b5b6745c87
commit
69a30a6e8e
2 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue