aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/aim
diff options
context:
space:
mode:
authorBrandon Bergren <bdragon@FreeBSD.org>2020-09-15 20:25:38 +0000
committerBrandon Bergren <bdragon@FreeBSD.org>2020-09-15 20:25:38 +0000
commit1e936efbce1c2e84406587cac39559a8cc16c8ca (patch)
tree72aea32c5bbcfb67ddd8d7a1085ebd311a807af2 /sys/powerpc/aim
parent101d5b527a5274b44c1354f9c6a31960e7007a69 (diff)
downloadsrc-1e936efbce1c2e84406587cac39559a8cc16c8ca.tar.gz
src-1e936efbce1c2e84406587cac39559a8cc16c8ca.zip
[PowerPC64LE] Set up the powernv partition table correctly.
The partition table is always big endian. Sponsored by: Tag1 Consulting, Inc.
Notes
Notes: svn path=/head/; revision=365768
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r--sys/powerpc/aim/moea64_native.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/moea64_native.c b/sys/powerpc/aim/moea64_native.c
index 3d9ed727bc90..b4d24b53ad1f 100644
--- a/sys/powerpc/aim/moea64_native.c
+++ b/sys/powerpc/aim/moea64_native.c
@@ -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);