From owner-svn-soc-all@FreeBSD.ORG Wed Jun 6 14:10:50 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 323BE1065677 for ; Wed, 6 Jun 2012 14:10:48 +0000 (UTC) (envelope-from emc2@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Wed, 06 Jun 2012 14:10:48 +0000 Date: Wed, 06 Jun 2012 14:10:48 +0000 From: emc2@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: <20120606141048.323BE1065677@hub.freebsd.org> Cc: Subject: socsvn commit: r237215 - soc2012/emc2/experimental 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: Wed, 06 Jun 2012 14:10:50 -0000 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; }