diff options
author | grehan <grehan@FreeBSD.org> | 2010-09-15 00:17:52 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2010-09-15 00:17:52 +0000 |
commit | bd5391ac7cb0edfedf0aef8dd05d21c0c1089122 (patch) | |
tree | 8c15c9974def9969555972ad8d9710e59f1334b5 /sys/powerpc/aim/mmu_oea.c | |
parent | 8c0a66bbc56cdc7db338e9b070b4551c38bf33ef (diff) | |
download | FreeBSD-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_oea.c')
-rw-r--r-- | sys/powerpc/aim/mmu_oea.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c index 2ade00f..a31e072 100644 --- a/sys/powerpc/aim/mmu_oea.c +++ b/sys/powerpc/aim/mmu_oea.c @@ -379,12 +379,8 @@ static mmu_method_t moea_methods[] = { { 0, 0 } }; -static mmu_def_t oea_mmu = { - MMU_TYPE_OEA, - moea_methods, - 0 -}; -MMU_DEF(oea_mmu); +MMU_DEF(oea_mmu, MMU_TYPE_OEA, moea_methods, 0); + static void tlbie(vm_offset_t va) |