Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108583776
D30797.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30797.diff
View Options
diff --git a/stand/powerpc/ofw/cas.c b/stand/powerpc/ofw/cas.c
--- a/stand/powerpc/ofw/cas.c
+++ b/stand/powerpc/ofw/cas.c
@@ -232,10 +232,10 @@
}
}
- if (radix_mmu && (var = getenv("radix_mmu")) != NULL && var[0] != '0')
- ov5[OV5_MMU_INDEX] = OV5_MMU_RADIX;
- else
+ if ((var = getenv("radix_mmu")) != NULL && var[0] == '0')
radix_mmu = 0;
+ if (radix_mmu)
+ ov5[OV5_MMU_INDEX] = OV5_MMU_RADIX;
inst = OF_open("/");
if (inst == -1) {
diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c
--- a/sys/powerpc/aim/aim_machdep.c
+++ b/sys/powerpc/aim/aim_machdep.c
@@ -586,8 +586,10 @@
{
if ((cpu_features2 & PPC_FEATURE2_ARCH_3_00) == 0)
radix_mmu = 0;
- else
+ else {
+ radix_mmu = 1;
TUNABLE_INT_FETCH("radix_mmu", &radix_mmu);
+ }
/*
* When using Radix, set the start and end of kva early, to be able to
diff --git a/sys/powerpc/powerpc/pmap_dispatch.c b/sys/powerpc/powerpc/pmap_dispatch.c
--- a/sys/powerpc/powerpc/pmap_dispatch.c
+++ b/sys/powerpc/powerpc/pmap_dispatch.c
@@ -83,7 +83,7 @@
SYSCTL_NODE(_vm, OID_AUTO, pmap, CTLFLAG_RD, 0, "VM/pmap parameters");
-int superpages_enabled = 0;
+int superpages_enabled = 1;
SYSCTL_INT(_vm_pmap, OID_AUTO, superpages_enabled, CTLFLAG_RDTUN,
&superpages_enabled, 0, "Enable support for transparent superpages");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 3:23 PM (5 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16199955
Default Alt Text
D30797.diff (1 KB)
Attached To
Mode
D30797: powerpc64: make radix with superpages default
Attached
Detach File
Event Timeline
Log In to Comment