socsvn commit: r238856 - in soc2012/syuu/bhyve-bios/tmp: .
pseudobios testbootsect
syuu at FreeBSD.org
syuu at FreeBSD.org
Mon Jul 2 21:32:22 UTC 2012
Author: syuu
Date: Mon Jul 2 21:32:20 2012
New Revision: 238856
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=238856
Log:
adding pseudobios, disk boot sector image for debugging
Added:
soc2012/syuu/bhyve-bios/tmp/
soc2012/syuu/bhyve-bios/tmp/pseudobios/
soc2012/syuu/bhyve-bios/tmp/pseudobios/Makefile
soc2012/syuu/bhyve-bios/tmp/pseudobios/ldscript.lds
soc2012/syuu/bhyve-bios/tmp/pseudobios/pseudobios.s
soc2012/syuu/bhyve-bios/tmp/testbootsect/
soc2012/syuu/bhyve-bios/tmp/testbootsect/Makefile
soc2012/syuu/bhyve-bios/tmp/testbootsect/ldscript.lds
soc2012/syuu/bhyve-bios/tmp/testbootsect/testbootsect.S
Added: soc2012/syuu/bhyve-bios/tmp/pseudobios/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2012/syuu/bhyve-bios/tmp/pseudobios/Makefile Mon Jul 2 21:32:20 2012 (r238856)
@@ -0,0 +1,6 @@
+all:
+ as --32 pseudobios.s -o pseudobios.o
+ ld -melf_i386_fbsd -T ldscript.lds pseudobios.o -o pseudobios.elf
+ objcopy -I elf32-i386-freebsd -O binary pseudobios.elf pseudobios.bin
+clean:
+ rm *.o *.elf *.bin
Added: soc2012/syuu/bhyve-bios/tmp/pseudobios/ldscript.lds
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2012/syuu/bhyve-bios/tmp/pseudobios/ldscript.lds Mon Jul 2 21:32:20 2012 (r238856)
@@ -0,0 +1,24 @@
+OUTPUT_FORMAT("elf32-i386")
+OUTPUT_ARCH("i386")
+SECTIONS
+{
+ .text 0x0:
+ {
+ *(.text)
+ *(.rodata)
+ } = 0
+ .data :
+ {
+ *(.data)
+ }
+ .sbss :
+ {
+ *(.sbss)
+ *(.scommon)
+ }
+ .bss :
+ {
+ *(.bss)
+ *(COMMON)
+ }
+}
Added: soc2012/syuu/bhyve-bios/tmp/pseudobios/pseudobios.s
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2012/syuu/bhyve-bios/tmp/pseudobios/pseudobios.s Mon Jul 2 21:32:20 2012 (r238856)
@@ -0,0 +1,5 @@
+.code16
+pusha
+vmcall
+popa
+iret
Added: soc2012/syuu/bhyve-bios/tmp/testbootsect/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2012/syuu/bhyve-bios/tmp/testbootsect/Makefile Mon Jul 2 21:32:20 2012 (r238856)
@@ -0,0 +1,7 @@
+all:
+ cc -m32 -c testbootsect.S -o testbootsect.o
+ ld -melf_i386_fbsd -T ldscript.lds testbootsect.o -o testbootsect.elf
+ objcopy -I elf32-i386-freebsd -O binary testbootsect.elf testbootsect.bin
+ dd if=/dev/null of=testbootsect.bin seek=512 bs=1 count=1
+clean:
+ rm *.o *.elf *.bin
Added: soc2012/syuu/bhyve-bios/tmp/testbootsect/ldscript.lds
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2012/syuu/bhyve-bios/tmp/testbootsect/ldscript.lds Mon Jul 2 21:32:20 2012 (r238856)
@@ -0,0 +1,24 @@
+OUTPUT_FORMAT("elf32-i386")
+OUTPUT_ARCH("i386")
+SECTIONS
+{
+ .text 0x0:
+ {
+ *(.text)
+ *(.rodata)
+ } = 0
+ .data :
+ {
+ *(.data)
+ }
+ .sbss :
+ {
+ *(.sbss)
+ *(.scommon)
+ }
+ .bss :
+ {
+ *(.bss)
+ *(COMMON)
+ }
+}
Added: soc2012/syuu/bhyve-bios/tmp/testbootsect/testbootsect.S
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2012/syuu/bhyve-bios/tmp/testbootsect/testbootsect.S Mon Jul 2 21:32:20 2012 (r238856)
@@ -0,0 +1,7 @@
+ .code16
+ mov $0x1, %ax
+ mov $0x2, %bx
+ mov $0x3, %cx
+ mov $0x4, %dx
+ int $0x13
+ int $0x14
More information about the svn-soc-all
mailing list