summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/mmu_oea64.c
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2010-09-15 00:17:52 +0000
committergrehan <grehan@FreeBSD.org>2010-09-15 00:17:52 +0000
commitbd5391ac7cb0edfedf0aef8dd05d21c0c1089122 (patch)
tree8c15c9974def9969555972ad8d9710e59f1334b5 /sys/powerpc/aim/mmu_oea64.c
parent8c0a66bbc56cdc7db338e9b070b4551c38bf33ef (diff)
downloadFreeBSD-src-bd5391ac7cb0edfedf0aef8dd05d21c0c1089122.zip
FreeBSD-src-bd5391ac7cb0edfedf0aef8dd05d21c0c1089122.tar.gz
Introduce inheritance into the PowerPC MMU kobj interface.
include/mmuvar.h - Change the MMU_DEF macro to also create the class definition as well as define the DATA_SET. Add a macro, MMU_DEF_INHERIT, which has an extra parameter specifying the MMU class to inherit methods from. Update the comments at the start of the header file to describe the new macros. booke/pmap.c aim/mmu_oea.c aim/mmu_oea64.c - Collapse mmu_def_t declaration into updated MMU_DEF macro The MMU_DEF_INHERIT macro will be used in the PS3 MMU implementation to allow it to inherit the stock powerpc64 MMU methods. Reviewed by: nwhitehorn
Diffstat (limited to 'sys/powerpc/aim/mmu_oea64.c')
-rw-r--r--sys/powerpc/aim/mmu_oea64.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c
index dc055a3..6328e57 100644
--- a/sys/powerpc/aim/mmu_oea64.c
+++ b/sys/powerpc/aim/mmu_oea64.c
@@ -474,12 +474,7 @@ static mmu_method_t moea64_methods[] = {
{ 0, 0 }
};
-static mmu_def_t oea64_mmu = {
- MMU_TYPE_G5,
- moea64_methods,
- 0
-};
-MMU_DEF(oea64_mmu);
+MMU_DEF(oea64_mmu, MMU_TYPE_G5, moea64_methods, 0);
static __inline u_int
va_to_pteg(uint64_t vsid, vm_offset_t addr, int large)
OpenPOWER on IntegriCloud