[OpenBIOS] [commit] r1171 - trunk/openbios-devel/include/arch/ppc

repository service svn at openbios.org
Thu Jul 11 18:49:28 CEST 2013


Author: agraf
Date: Thu Jul 11 18:49:27 2013
New Revision: 1171
URL: http://tracker.coreboot.org/trac/openbios/changeset/1171

Log:
PPC: Add kernel header style typedefs

When compiling OpenBIOS on openSUSE 12.3 ppc64 I end up getting real host
headers included that make use of the __uxx and __sxx types.

Define those too in our asm copy of the types.h file, as that one overrides
the host's types.h that we would've used otherwise.

Signed-off-by: Alexander Graf <agraf at suse.de>

Modified:
   trunk/openbios-devel/include/arch/ppc/types.h

Modified: trunk/openbios-devel/include/arch/ppc/types.h
==============================================================================
--- trunk/openbios-devel/include/arch/ppc/types.h	Thu Jul 11 18:49:26 2013	(r1170)
+++ trunk/openbios-devel/include/arch/ppc/types.h	Thu Jul 11 18:49:27 2013	(r1171)
@@ -82,13 +82,21 @@
 /* size named types */
 
 typedef unsigned char   u8;
+typedef unsigned char   __u8;
 typedef unsigned short u16;
+typedef unsigned short __u16;
 typedef unsigned int   u32;
+typedef unsigned int   __u32;
 typedef unsigned long long u64;
+typedef unsigned long long __u64;
 
 typedef signed char	s8;
+typedef signed char	__s8;
 typedef short		s16;
+typedef short		__s16;
 typedef int		s32;
+typedef int		__s32;
 typedef long long	s64;
+typedef long long	__s64;
 
 #endif



More information about the OpenBIOS mailing list