Date: Wed, 06 Jun 2012 14:10:48 +0000 From: emc2@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r237215 - soc2012/emc2/experimental Message-ID: <20120606141048.323BE1065677@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emc2 Date: Wed Jun 6 14:10:47 2012 New Revision: 237215 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=237215 Log: One problem solved (sort of). It seems compiling with clang generates bad offsets for calls, for some reason. Compiling with gcc fixes the problem. However, it's still hanging whenever I try to call EFI builtin functions, for some reason. Modified: soc2012/emc2/experimental/Makefile soc2012/emc2/experimental/helloworld.c Modified: soc2012/emc2/experimental/Makefile ============================================================================== --- soc2012/emc2/experimental/Makefile Wed Jun 6 13:35:30 2012 (r237214) +++ soc2012/emc2/experimental/Makefile Wed Jun 6 14:10:47 2012 (r237215) @@ -1,5 +1,5 @@ -CC=clang -CFLAGS=-O2 -m32 -I../head/sys/boot/efi/include/ -I../head/sys/boot/efi/include/i386 +CC=gcc +CFLAGS=-O2 -m32 -I../head/sys/boot/efi/include/ -I../head/sys/boot/efi/include/i386 -fPIC OBJCOPY=objcopy EFIFORMAT=efi-app-ia32 LDSCRIPT=ldscript.i386 Modified: soc2012/emc2/experimental/helloworld.c ============================================================================== --- soc2012/emc2/experimental/helloworld.c Wed Jun 6 13:35:30 2012 (r237214) +++ soc2012/emc2/experimental/helloworld.c Wed Jun 6 14:10:47 2012 (r237215) @@ -5,8 +5,8 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE* systab) { - /* - systab->ConOut->OutputString(systab->ConOut, str); - */ + + systab->ConOut->ClearScreen(systab->ConOut); + return EFI_SUCCESS; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120606141048.323BE1065677>