From: Jack Lange Date: Thu, 21 Oct 2010 23:26:46 +0000 (-0500) Subject: geekos test kernel build fixes X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=f6063d2297d9f96351d33332634400284809125b;p=palacios.releases.git geekos test kernel build fixes --- diff --git a/test/geekos_test_vm/build/Makefile b/test/geekos_test_vm/build/Makefile index c38b9f4..a7669bd 100644 --- a/test/geekos_test_vm/build/Makefile +++ b/test/geekos_test_vm/build/Makefile @@ -81,12 +81,15 @@ KERNEL_C_SRCS := idt.c int.c trap.c irq.c io.c \ gdt.c tss.c segment.c \ bget.c malloc.c \ synch.c kthread.c \ - vm_cons.c debug.c \ + debug.c \ + vm_cons.c \ pci.c \ serial.c reboot.c \ paging.c \ main.c + # + # Kernel object files built from C source files KERNEL_C_OBJS := $(KERNEL_C_SRCS:%.c=geekos/%.o) @@ -124,17 +127,17 @@ COMMON_C_OBJS := $(COMMON_C_SRCS:%.c=common/%.o) # Uncomment if cross compiling #TARGET_CC_PREFIX := i386-elf- -TARGET_CC_PREFIX := $(PROJECT_ROOT)/../../devtools/i386/bin/i386-elf- +#TARGET_CC_PREFIX := $(PROJECT_ROOT)/../../devtools/i386/bin/i386-elf- # Target C compiler. gcc 2.95.2 or later should work. -TARGET_CC := $(TARGET_CC_PREFIX)gcc +TARGET_CC := $(TARGET_CC_PREFIX)gcc -m32 # Host C compiler. This is used to compile programs to execute on # the host platform, not the target (x86) platform. On x86/ELF # systems, such as Linux and FreeBSD, it can generally be the same # as the target C compiler. -HOST_CC := gcc +HOST_CC := gcc # Target linker. GNU ld is probably to only one that will work. TARGET_LD := $(TARGET_CC_PREFIX)ld -melf_i386 @@ -152,8 +155,8 @@ TARGET_NM := $(TARGET_CC_PREFIX)nm TARGET_OBJCOPY := $(TARGET_CC_PREFIX)objcopy # Nasm (http://nasm.sourceforge.net) -NASM := $(PROJECT_ROOT)/../../devtools/bin/nasm -#NASM := /opt/vmm-tools/bin/nasm +#NASM := $(PROJECT_ROOT)/../../devtools/bin/nasm +NASM := nasm AS = as --32 diff --git a/test/geekos_test_vm/build/depend.mak b/test/geekos_test_vm/build/depend.mak index 052def9..e69de29 100644 --- a/test/geekos_test_vm/build/depend.mak +++ b/test/geekos_test_vm/build/depend.mak @@ -1,268 +0,0 @@ -geekos/idt.o: ../src/geekos/idt.c ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/defs.h ../include/geekos/idt.h \ - ../include/geekos/int.h ../include/geekos/debug.h \ - ../include/geekos/string.h ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h -geekos/int.o: ../src/geekos/int.c ../include/geekos/idt.h \ - ../include/geekos/int.h ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/defs.h ../include/geekos/irq.h \ - ../include/geekos/debug.h ../include/geekos/string.h \ - ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/cpu.h -geekos/trap.o: ../src/geekos/trap.c ../include/geekos/idt.h \ - ../include/geekos/int.h ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/defs.h ../include/geekos/kthread.h \ - ../include/geekos/list.h ../include/geekos/trap.h \ - ../include/geekos/debug.h ../include/geekos/string.h \ - ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h -geekos/irq.o: ../src/geekos/irq.c ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/idt.h ../include/geekos/int.h \ - ../include/geekos/defs.h ../include/geekos/io.h ../include/geekos/irq.h -geekos/io.o: ../src/geekos/io.c ../include/geekos/io.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h -geekos/blockdev.o: ../src/geekos/blockdev.c ../include/geekos/errno.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/string.h ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/malloc.h ../include/geekos/int.h \ - ../include/geekos/kassert.h ../include/geekos/defs.h \ - ../include/geekos/kthread.h ../include/geekos/list.h \ - ../include/geekos/synch.h ../include/geekos/blockdev.h \ - ../include/geekos/fileio.h -geekos/ide.o: ../src/geekos/ide.c ../include/geekos/serial.h \ - ../include/geekos/irq.h ../include/geekos/int.h \ - ../include/geekos/kassert.h ../include/geekos/screen.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/defs.h ../include/geekos/string.h \ - ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/io.h ../include/geekos/errno.h \ - ../include/geekos/malloc.h ../include/geekos/timer.h \ - ../include/geekos/kthread.h ../include/geekos/list.h \ - ../include/geekos/blockdev.h ../include/geekos/fileio.h \ - ../include/geekos/ide.h -geekos/keyboard.o: ../src/geekos/keyboard.c ../include/geekos/kthread.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/list.h ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/fmtout.h \ - ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/irq.h ../include/geekos/int.h \ - ../include/geekos/defs.h ../include/geekos/io.h \ - ../include/geekos/keyboard.h -geekos/screen.o: ../src/geekos/screen.c \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/kassert.h ../include/geekos/screen.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - ../include/geekos/io.h ../include/geekos/int.h ../include/geekos/defs.h -geekos/timer.o: ../src/geekos/timer.c \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/limits.h \ - ../include/geekos/io.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/int.h ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/fmtout.h \ - ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/defs.h ../include/geekos/irq.h \ - ../include/geekos/kthread.h ../include/geekos/list.h \ - ../include/geekos/timer.h ../include/geekos/debug.h \ - ../include/geekos/string.h ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h -geekos/mem.o: ../src/geekos/mem.c ../include/geekos/defs.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/kassert.h ../include/geekos/screen.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/bootinfo.h ../include/geekos/gdt.h \ - ../include/geekos/int.h ../include/geekos/malloc.h \ - ../include/geekos/string.h ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/paging.h ../include/geekos/list.h \ - ../include/geekos/mem.h -geekos/crc32.o: ../src/geekos/crc32.c ../include/geekos/crc32.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/kassert.h ../include/geekos/screen.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/serial.h ../include/geekos/irq.h \ - ../include/geekos/int.h ../include/geekos/defs.h \ - ../include/geekos/string.h ../include/geekos/../libc/string.h \ - ../include/geekos/io.h -geekos/gdt.o: ../src/geekos/gdt.c ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/segment.h ../include/geekos/int.h \ - ../include/geekos/defs.h ../include/geekos/tss.h \ - ../include/geekos/gdt.h ../include/libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h -geekos/tss.o: ../src/geekos/tss.c ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/defs.h ../include/geekos/gdt.h \ - ../include/geekos/segment.h ../include/geekos/string.h \ - ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/tss.h ../include/geekos/serial.h \ - ../include/geekos/irq.h ../include/geekos/int.h ../include/geekos/io.h -geekos/segment.o: ../src/geekos/segment.c ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/string.h ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/tss.h ../include/geekos/segment.h -geekos/bget.o: ../src/geekos/bget.c ../include/geekos/string.h \ - ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/kassert.h ../include/geekos/screen.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/bget.h -geekos/malloc.o: ../src/geekos/malloc.c ../include/geekos/screen.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/int.h ../include/geekos/kassert.h \ - ../include/geekos/defs.h ../include/geekos/bget.h \ - ../include/geekos/malloc.h -geekos/synch.o: ../src/geekos/synch.c ../include/geekos/kthread.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/list.h ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/fmtout.h \ - ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/int.h ../include/geekos/defs.h \ - ../include/geekos/synch.h -geekos/kthread.o: ../src/geekos/kthread.c ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/defs.h ../include/geekos/int.h \ - ../include/geekos/mem.h ../include/geekos/list.h \ - ../include/geekos/paging.h ../include/geekos/bootinfo.h \ - ../include/geekos/symbol.h ../include/geekos/string.h \ - ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/kthread.h ../include/geekos/malloc.h \ - ../include/geekos/serial.h ../include/geekos/irq.h \ - ../include/geekos/io.h -geekos/vm_cons.o: ../src/geekos/vm_cons.c ../include/geekos/fmtout.h \ - ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/string.h ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/idt.h ../include/geekos/int.h \ - ../include/geekos/kassert.h ../include/geekos/screen.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/defs.h ../include/geekos/vm_cons.h \ - ../include/geekos/io.h -geekos/debug.o: ../src/geekos/debug.c ../include/geekos/string.h \ - ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/debug.h ../include/geekos/fmtout.h \ - ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/vm_cons.h ../include/geekos/io.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/screen.h -geekos/serial.o: ../src/geekos/serial.c ../include/geekos/serial.h \ - ../include/geekos/irq.h ../include/geekos/int.h \ - ../include/geekos/kassert.h ../include/geekos/screen.h \ - ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/defs.h ../include/geekos/string.h \ - ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/io.h ../include/geekos/reboot.h \ - ../include/geekos/gdt.h ../include/geekos/idt.h -geekos/reboot.o: ../src/geekos/reboot.c ../include/geekos/reboot.h \ - ../include/libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h -geekos/paging.o: ../src/geekos/paging.c ../include/geekos/string.h \ - ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/int.h ../include/geekos/kassert.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/defs.h ../include/geekos/idt.h \ - ../include/geekos/kthread.h ../include/geekos/list.h \ - ../include/geekos/mem.h ../include/geekos/paging.h \ - ../include/geekos/bootinfo.h ../include/geekos/malloc.h \ - ../include/geekos/gdt.h ../include/geekos/segment.h \ - ../include/geekos/crc32.h ../include/geekos/debug.h -geekos/main.o: ../src/geekos/main.c ../include/geekos/bootinfo.h \ - ../include/geekos/string.h ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/screen.h ../include/geekos/ktypes.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdbool.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/geekos/mem.h ../include/geekos/defs.h \ - ../include/geekos/list.h ../include/geekos/kassert.h \ - ../include/geekos/paging.h ../include/geekos/crc32.h \ - ../include/geekos/tss.h ../include/geekos/int.h \ - ../include/geekos/kthread.h ../include/geekos/trap.h \ - ../include/geekos/timer.h ../include/geekos/keyboard.h \ - ../include/geekos/io.h ../include/geekos/serial.h \ - ../include/geekos/irq.h ../include/geekos/reboot.h \ - ../include/geekos/ide.h ../include/geekos/vm_cons.h \ - ../include/geekos/debug.h ../include/geekos/gdt.h -common/fmtout.o: ../src/common/fmtout.c \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h \ - ../include/geekos/string.h ../include/geekos/../libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/limits.h \ - ../include/geekos/fmtout.h ../include/geekos/../libc/fmtout.h -common/string.o: ../src/common/string.c ../include/libc/fmtout.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stdarg.h \ - ../include/libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h -common/memmove.o: ../src/common/memmove.c ../include/libc/string.h \ - /home/jarusl/palacios/devtools/i386/lib/gcc/i386-elf/3.4.6/include/stddef.h diff --git a/test/geekos_test_vm/include/geekos/segment.h b/test/geekos_test_vm/include/geekos/segment.h index 06f302a..5277f8e 100644 --- a/test/geekos_test_vm/include/geekos/segment.h +++ b/test/geekos_test_vm/include/geekos/segment.h @@ -19,29 +19,23 @@ struct TSS; -#if __TINYC__ -#define PACKED -#else -#define PACKED __attribute__((packed)) -#endif - /* * The general format of a segment descriptor. */ struct Segment_Descriptor { - ushort_t sizeLow PACKED ; - uint_t baseLow : 24 PACKED ; - uint_t type : 4 PACKED ; - uint_t system : 1 PACKED ; - uint_t dpl : 2 PACKED ; - uint_t present : 1 PACKED ; - uint_t sizeHigh : 4 PACKED ; - uint_t avail : 1 PACKED ; - uint_t reserved : 1 PACKED ; /* set to zero */ - uint_t dbBit : 1 PACKED ; - uint_t granularity : 1 PACKED ; - uchar_t baseHigh PACKED ; -}; + ushort_t sizeLow; + uint_t baseLow : 24; + uint_t type : 4; + uint_t system : 1; + uint_t dpl : 2; + uint_t present : 1; + uint_t sizeHigh : 4; + uint_t avail : 1; + uint_t reserved : 1; /* set to zero */ + uint_t dbBit : 1; + uint_t granularity : 1; + uchar_t baseHigh ; +} __attribute__((packed)); /** * Construct a segment selector. diff --git a/test/geekos_test_vm/src/geekos/serial.c b/test/geekos_test_vm/src/geekos/serial.c index 0729501..e583b1f 100644 --- a/test/geekos_test_vm/src/geekos/serial.c +++ b/test/geekos_test_vm/src/geekos/serial.c @@ -117,7 +117,7 @@ void SerialMemDump(unsigned char *start, int n) int i, j; for (i=0;i