diff options
author | 2012-03-19 19:16:06 +0000 | |
---|---|---|
committer | 2012-03-19 19:16:06 +0000 | |
commit | f8a9462dae6765541bf4b8b03bf637abd3658cf3 (patch) | |
tree | 647d9b4a728f6701b8713e854ec8e5c1668754ba | |
parent | Change the page size computation logic to default to 16KB pages, and only (diff) | |
download | wireguard-openbsd-f8a9462dae6765541bf4b8b03bf637abd3658cf3.tar.xz wireguard-openbsd-f8a9462dae6765541bf4b8b03bf637abd3658cf3.zip |
Use uncached addresses for all exception vectors, when copying our code (or
trampolines) to them; this makes sure there is no risk of pending writes
being lost when we clear the caches. Of course, this would be a bug in the
cache handling routines, but having our vectors correctly set will help
debugging the issue.
Tested on sgi and loongson.
-rw-r--r-- | sys/arch/mips64/include/cpu.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h index 26da2d06345..6214091335a 100644 --- a/sys/arch/mips64/include/cpu.h +++ b/sys/arch/mips64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.73 2012/03/15 18:57:22 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.74 2012/03/19 19:16:06 miod Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -210,10 +210,10 @@ * Location of exception vectors. */ #define RESET_EXC_VEC (CKSEG1_BASE + 0x1fc00000) -#define TLB_MISS_EXC_VEC (CKSEG0_BASE + 0x00000000) -#define XTLB_MISS_EXC_VEC (CKSEG0_BASE + 0x00000080) -#define CACHE_ERR_EXC_VEC (CKSEG0_BASE + 0x00000100) -#define GEN_EXC_VEC (CKSEG0_BASE + 0x00000180) +#define TLB_MISS_EXC_VEC (CKSEG1_BASE + 0x00000000) +#define XTLB_MISS_EXC_VEC (CKSEG1_BASE + 0x00000080) +#define CACHE_ERR_EXC_VEC (CKSEG1_BASE + 0x00000100) +#define GEN_EXC_VEC (CKSEG1_BASE + 0x00000180) /* * Coprocessor 0 registers: |