diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-05-17 22:33:26 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-05-17 22:33:26 +0000 |
commit | 00d2acba2f9a1f418e2fc3693eee1334b1bda210 (patch) | |
tree | bb201b7ff042ffb9629b8d749b16b8512ed3bb23 /sys/arch/m88k/include/cmmu.h | |
parent | 4044748cd0514866403062022811177b8fd98b24 (diff) |
Extend cmmu routines to return the caching mode to use for page tables.
Alter the 88200-specific code to enforce cache-inhibited page tables for
extremely old 88200 versions, and to disable write-back caching on systems
where xmem instructions do not behave correctly when applied to write-back
cached addresses.
No change introduced on 88110 systems, as well as most 88100 systems; the
affected systems are 88100 systems with 88100 revision < 10 and/or 88200
revision < 7; that is, only early MVME181 and MVME188 (not 188A) systems.
Diffstat (limited to 'sys/arch/m88k/include/cmmu.h')
-rw-r--r-- | sys/arch/m88k/include/cmmu.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/m88k/include/cmmu.h b/sys/arch/m88k/include/cmmu.h index 40324d10f5f..a7242e39f72 100644 --- a/sys/arch/m88k/include/cmmu.h +++ b/sys/arch/m88k/include/cmmu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cmmu.h,v 1.29 2013/02/19 21:02:06 miod Exp $ */ +/* $OpenBSD: cmmu.h,v 1.30 2013/05/17 22:33:25 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1992 Carnegie Mellon University @@ -42,7 +42,8 @@ struct cmmu_p { cpuid_t (*cpu_number)(void); - apr_t (*kapr_cmode)(void); + apr_t (*apr_cmode)(void); + apr_t (*pte_cmode)(void); void (*set_sapr)(apr_t); void (*set_uapr)(apr_t); @@ -83,7 +84,8 @@ extern __cpu_simple_lock_t cmmu_cpu_lock; #define cpu_configuration_print(cpu) (cmmu->cpu_configuration_print)(cpu) #define cmmu_shutdown (cmmu->shutdown) #define cmmu_cpu_number (cmmu->cpu_number) -#define cmmu_kapr_cmode (cmmu->kapr_cmode) +#define cmmu_apr_cmode (cmmu->apr_cmode) +#define cmmu_pte_cmode (cmmu->pte_cmode) #define cmmu_set_sapr(apr) (cmmu->set_sapr)(apr) #define cmmu_set_uapr(apr) (cmmu->set_uapr)(apr) #define cmmu_tlbis(cpu, va, pte) (cmmu->tlb_inv_s)(cpu, va, pte) |