Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include handle ppc64



details:   https://anonhg.NetBSD.org/src/rev/1ffa1d2e0c90
branches:  trunk
changeset: 827646:1ffa1d2e0c90
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 06 19:20:54 2017 +0000

description:
handle ppc64

diffstat:

 sys/arch/powerpc/include/elf_machdep.h |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r ce21fe09229a -r 1ffa1d2e0c90 sys/arch/powerpc/include/elf_machdep.h
--- a/sys/arch/powerpc/include/elf_machdep.h    Mon Nov 06 19:17:43 2017 +0000
+++ b/sys/arch/powerpc/include/elf_machdep.h    Mon Nov 06 19:20:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf_machdep.h,v 1.14 2017/11/06 03:47:48 christos Exp $        */
+/*     $NetBSD: elf_machdep.h,v 1.15 2017/11/06 19:20:54 christos Exp $        */
 
 #ifndef _POWERPC_ELF_MACHDEP_H_
 #define _POWERPC_ELF_MACHDEP_H_
@@ -16,15 +16,14 @@
 #define        ELF32_MACHDEP_ID        EM_PPC
 #define        ELF64_MACHDEP_ID        EM_PPC64
 
-#define KERN_ELFSIZE           32
 
-#ifndef ARCH_ELFSIZE
 #ifdef _LP64
+#define KERN_ELFSIZE           64
 #define ARCH_ELFSIZE           64      /* MD native binary size */
 #else
+#define KERN_ELFSIZE           32
 #define ARCH_ELFSIZE           32      /* MD native binary size */
 #endif
-#endif
 
 /* Specify the value of _GLOBAL_OFFSET_TABLE_ */
 #define        DT_PPC_GOT              DT_LOPROC



Home | Main Index | Thread Index | Old Index