[PowerPC64LE] Set up the powernv partition table correctly.

The partition table is always big endian.

Sponsored by:	Tag1 Consulting, Inc.
This commit is contained in:
Brandon Bergren 2020-09-15 20:25:38 +00:00
parent 101d5b527a
commit 1e936efbce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365768

View File

@ -556,9 +556,9 @@ moea64_bootstrap_native(vm_offset_t kernelstart, vm_offset_t kernelend)
sizeof(struct lpteg));
if (cpu_features2 & PPC_FEATURE2_ARCH_3_00) {
bzero(__DEVOLATILE(void *, moea64_part_table), PART_SIZE);
moea64_part_table[0].pagetab =
moea64_part_table[0].pagetab = htobe64(
(DMAP_TO_PHYS((vm_offset_t)moea64_pteg_table)) |
(uintptr_t)(flsl((moea64_pteg_count - 1) >> 11));
(uintptr_t)(flsl((moea64_pteg_count - 1) >> 11)));
}
ENABLE_TRANS(msr);