socsvn commit: r237215 - soc2012/emc2/experimental
emc2 at FreeBSD.org
emc2 at FreeBSD.org
Wed Jun 6 14:10:50 UTC 2012
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;
}
More information about the svn-soc-all
mailing list