From owner-svn-soc-all@FreeBSD.ORG Mon Jul 2 21:32:22 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 7AA20106564A for ; Mon, 2 Jul 2012 21:32:20 +0000 (UTC) (envelope-from syuu@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Mon, 02 Jul 2012 21:32:20 +0000 Date: Mon, 02 Jul 2012 21:32:20 +0000 From: syuu@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120702213220.7AA20106564A@hub.freebsd.org> Cc: Subject: socsvn commit: r238856 - in soc2012/syuu/bhyve-bios/tmp: . pseudobios testbootsect X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2012 21:32:22 -0000 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