make hlt start at 0x2000
authorRonald G. Minnich <rminnich@google.com>
Sun, 2 Feb 2014 17:33:33 +0000 (09:33 -0800)
committerRonald G. Minnich <rminnich@google.com>
Sun, 2 Feb 2014 17:33:33 +0000 (09:33 -0800)
kvm does not like loading at 0.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
kern/kfs/bin/hlt
kern/kfs/runvm
tests/hlt.s

index d41bb4b..deac877 100755 (executable)
Binary files a/kern/kfs/bin/hlt and b/kern/kfs/bin/hlt differ
index 21a44a3..cad3b7e 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/ash
 cat '#V/clone'
 ls '#V'
-cp /bin/busybox '#r'
-echo fillmem '#r/busybox' 0 0 0 0x2000 > '#V/vm0/ctl'
+cp /bin/hlt '#r'
+echo fillmem '#r/hlt' 0 0 0 0x2000 > '#V/vm0/ctl'
 
 
index 9677907..2c9fdf5 100644 (file)
@@ -1,2 +1,3 @@
+.=0x2000
 _start: hlt
 /* as -o hlt.o hlt.s && ld --nostdlib -o hlt hlt.o */