diff options
author | jmallett <jmallett@FreeBSD.org> | 2012-03-06 19:01:32 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2012-03-06 19:01:32 +0000 |
commit | ac880fa7c8eba95d2effa0a42b7c88775cdfe804 (patch) | |
tree | d0e1d806b75665a77acaa0f5e553063e8e3fc9f6 /sys/mips/sibyte | |
parent | 606ca3f4b71b5d5e3dbda63a827a683ffda7a0a4 (diff) | |
download | FreeBSD-src-ac880fa7c8eba95d2effa0a42b7c88775cdfe804.zip FreeBSD-src-ac880fa7c8eba95d2effa0a42b7c88775cdfe804.tar.gz |
At the risk of reducing source compatibility with old NetBSD and Sprite:
o) Get rid of some unused macros related to features we don't intend to
provide.
o) Get rid of macro definitions for MIPS-I CPUs. We are not likely to
support anything that predartes MIPS-III.
o) Respell MIPS3_* macros as MIPS_*, which is how most of them were being
used already.
o) Eliminate a duplicate and mostly-unused set of exception vector macros.
There's still considerable duplication and lots more obsolete in our headers,
but this reduces one of the larger files to a size where one could reckon
about the correctness of its contents with a mere few hours of contemplation.
There is, of course, a question of whether we need definitions for fields,
registers and configurations that we are unlikely to ever use or implement,
even if they're not obsolete since 1991. FreeBSD is not a processor
reference manual, and things that aren't used may be wrong, or may be
duplicated because nobody could possibly actually know whether they're
already defined.
Diffstat (limited to 'sys/mips/sibyte')
-rw-r--r-- | sys/mips/sibyte/sb_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/sibyte/sb_machdep.c b/sys/mips/sibyte/sb_machdep.c index b6d395f..304d036 100644 --- a/sys/mips/sibyte/sb_machdep.c +++ b/sys/mips/sibyte/sb_machdep.c @@ -253,7 +253,7 @@ mips_init(void) * code to the XTLB exception vector. */ { - bcopy(MipsTLBMiss, (void *)MIPS3_XTLB_MISS_EXC_VEC, + bcopy(MipsTLBMiss, (void *)MIPS_XTLB_MISS_EXC_VEC, MipsTLBMissEnd - MipsTLBMiss); mips_icache_sync_all(); @@ -314,7 +314,7 @@ kseg0_map_coherent(void) const int CFG_K0_COHERENT = 5; config = mips_rd_config(); - config &= ~MIPS3_CONFIG_K0_MASK; + config &= ~MIPS_CONFIG_K0_MASK; config |= CFG_K0_COHERENT; mips_wr_config(config); } |