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 For LP64, remove members of struct ...



details:   https://anonhg.NetBSD.org/src/rev/0a93906d4ef9
branches:  trunk
changeset: 960077:0a93906d4ef9
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Mar 07 14:42:53 2021 +0000

description:
For LP64, remove members of struct cpu_info that exist just for
compatible with booke or ibm4xx. Even if MODULAR || _MODULE,
these members are useless for powerpc64.

diffstat:

 sys/arch/powerpc/include/cpu.h |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r e8f886f97168 -r 0a93906d4ef9 sys/arch/powerpc/include/cpu.h
--- a/sys/arch/powerpc/include/cpu.h    Sun Mar 07 14:31:53 2021 +0000
+++ b/sys/arch/powerpc/include/cpu.h    Sun Mar 07 14:42:53 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.117 2021/02/24 16:42:38 thorpej Exp $        */
+/*     $NetBSD: cpu.h,v 1.118 2021/03/07 14:42:53 rin Exp $    */
 
 /*
  * Copyright (C) 1999 Wolfgang Solfrank.
@@ -118,18 +118,20 @@
        volatile uint32_t ci_pending_ipis;
        int ci_mtx_oldspl;
        int ci_mtx_count;
-#if defined(PPC_IBM4XX) || defined(MODULAR) || defined(_MODULE)
+#if defined(PPC_IBM4XX) || \
+    ((defined(MODULAR) || defined(_MODULE)) && !defined(_LP64))
        char *ci_intstk;
 #endif
 
        register_t ci_savearea[CPUSAVE_SIZE];
-#if defined(PPC_BOOKE) || defined(MODULAR) || defined(_MODULE)
+#if defined(PPC_BOOKE) || \
+    ((defined(MODULAR) || defined(_MODULE)) && !defined(_LP64))
        uint32_t ci_pmap_asid_cur;
        union pmap_segtab *ci_pmap_segtabs[2];
 #define        ci_pmap_kern_segtab     ci_pmap_segtabs[0]
 #define        ci_pmap_user_segtab     ci_pmap_segtabs[1]
        struct pmap_tlb_info *ci_tlb_info;
-#endif /* PPC_BOOKE || MODULAR || _MODULE */
+#endif /* PPC_BOOKE || ((MODULAR || _MODULE) && !_LP64) */
        struct cache_info ci_ci;                
        void *ci_sysmon_cookie;
        void (*ci_idlespin)(void);



Home | Main Index | Thread Index | Old Index