Author: afaerber Date: Sun Dec 19 14:37:43 2010 New Revision: 986 URL: http://tracker.coreboot.org/trac/openbios/changeset/986
Log: ppc: Prepare more assembler macros for ppc64 compatibility
Adopt macro names from Linux.
Signed-off-by: Andreas Färber andreas.faerber@web.de Acked-by: Alexander Graf agraf@suse.de
Modified: trunk/openbios-devel/include/arch/ppc/asmdefs.h
Modified: trunk/openbios-devel/include/arch/ppc/asmdefs.h ============================================================================== --- trunk/openbios-devel/include/arch/ppc/asmdefs.h Fri Dec 17 15:25:14 2010 (r985) +++ trunk/openbios-devel/include/arch/ppc/asmdefs.h Sun Dec 19 14:37:43 2010 (r986) @@ -100,13 +100,21 @@ #endif
#ifdef __powerpc64__ +#define PPC_LL ld +#define PPC_STL std +#define PPC_STLU stdu #define RFI rfid #define MTMSRD(r) mtmsrd r #define BRANCH_LABEL(name) . ## name +#define PPC_LR_STKOFF 16 #else +#define PPC_LL lwz +#define PPC_STL stw +#define PPC_STLU stwu #define RFI rfi #define MTMSRD(r) mtmsr r #define BRANCH_LABEL(name) name +#define PPC_LR_STKOFF 4 #endif
#ifndef __darwin__