Author: jhibbits
Date: Wed Nov 13 02:22:00 2019
New Revision: 354671
URL: https://svnweb.freebsd.org/changeset/base/354671

Log:
  powerpc64: Don't guard ISA 3.0 partition table setup with hw_direct_map
  
  PowerISA 3.0 eliminated the 64-bit bridge mode which allowed 32-bit kernels
  to run on 64-bit AIM/Book-S hardware.  Since therefore only a 64-bit kernel
  can run on this hardware, and 64-bit native always has the direct map, there
  is no need to guard it.

Modified:
  head/sys/powerpc/aim/moea64_native.c

Modified: head/sys/powerpc/aim/moea64_native.c
==============================================================================
--- head/sys/powerpc/aim/moea64_native.c        Wed Nov 13 02:16:24 2019        
(r354670)
+++ head/sys/powerpc/aim/moea64_native.c        Wed Nov 13 02:22:00 2019        
(r354671)
@@ -545,9 +545,8 @@ moea64_bootstrap_native(mmu_t mmup, vm_offset_t kernel
        if (cpu_features2 & PPC_FEATURE2_ARCH_3_00) {
                moea64_part_table =
                    (struct pate *)moea64_bootstrap_alloc(PART_SIZE, PART_SIZE);
-               if (hw_direct_map)
-                       moea64_part_table =
-                           (struct pate 
*)PHYS_TO_DMAP((vm_offset_t)moea64_part_table);
+               moea64_part_table =
+                   (struct pate *)PHYS_TO_DMAP((vm_offset_t)moea64_part_table);
        }
        DISABLE_TRANS(msr);
        bzero(__DEVOLATILE(void *, moea64_pteg_table), moea64_pteg_count *
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to