diff options
author | tmm <tmm@FreeBSD.org> | 2001-11-09 19:37:52 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-11-09 19:37:52 +0000 |
commit | 30ac245755df3e0b5cca17ce6a1ab2ee59d9c29b (patch) | |
tree | 5d726b0a8bba019ed1b1460876003d696c9f404b /sys | |
parent | 3f91929ee193910c9396f9069d2bdbe6d3ee9d6e (diff) | |
download | FreeBSD-src-30ac245755df3e0b5cca17ce6a1ab2ee59d9c29b.zip FreeBSD-src-30ac245755df3e0b5cca17ce6a1ab2ee59d9c29b.tar.gz |
Header file updates needed for the cache code: add/correct some ASI
definitions and add PAGE_*_MIN and -_MAX macros.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/include/asi.h | 17 | ||||
-rw-r--r-- | sys/sparc64/include/param.h | 6 |
2 files changed, 21 insertions, 2 deletions
diff --git a/sys/sparc64/include/asi.h b/sys/sparc64/include/asi.h index cc0aa49..49992d3 100644 --- a/sys/sparc64/include/asi.h +++ b/sys/sparc64/include/asi.h @@ -90,6 +90,10 @@ #define AA_DMMU_VWPR 0x38 #define AA_DMMU_PWPR 0x40 +#define ASI_DCACHE_DATA 0x46 +#define ASI_DCACHE_TAG 0x47 +#define ASI_ECACHE_TAG_DATA 0x4e + #define ASI_DMMU_TSB_8KB_PTR_REG 0x59 #define ASI_DMMU_TSB_64KB_PTR_REG 0x5a #define ASI_DMMU_TSB_DIRECT_PTR_REG 0x5b @@ -98,9 +102,16 @@ #define ASI_DTLB_TAG_READ_REG 0x5e #define ASI_DMMU_DEMAP 0x5f +#define ASI_ICACHE_INSTR 0x66 +#define ASI_ICACHE_TAG 0x67 +#define ASI_ICACHE_PRE_DECODE 0x6e +#define ASI_ICACHE_PRE_NEXT_FIELD 0x6f + #define ASI_BLK_AUIP 0x70 #define ASI_BLK_AIUS 0x71 +#define ASI_ECACHE_W 0x76 + #define ASI_SDB_INTR_W 0x77 #define AA_SDB_INTR_D0 0x40 #define AA_SDB_INTR_D1 0x50 @@ -109,10 +120,12 @@ #define ASI_BLK_AIUPL 0x78 #define ASI_BLK_AIUSL 0x79 +#define ASI_ECACHE_R 0x7e + #define ASI_SDB_INTR_R 0x7f -#define ASI_BLK_COMMIT_S 0xe0 -#define ASI_BLK_COMMIT_P 0xe1 +#define ASI_BLK_COMMIT_P 0xe0 +#define ASI_BLK_COMMIT_S 0xe1 #define ASI_BLK_P 0xf0 #define ASI_BLK_S 0xf1 #define ASI_BLK_PL 0xf8 diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h index 6699778..8733764 100644 --- a/sys/sparc64/include/param.h +++ b/sys/sparc64/include/param.h @@ -101,9 +101,15 @@ #define PAGE_SIZE_4M (1<<PAGE_SHIFT_4M) #define PAGE_MASK_4M (PAGE_SIZE_4M-1) +#define PAGE_SHIFT_MIN PAGE_SHIFT_8K +#define PAGE_SIZE_MIN PAGE_SIZE_8K +#define PAGE_MASK_MIN PAGE_MASK_8K #define PAGE_SHIFT PAGE_SHIFT_8K /* LOG2(PAGE_SIZE) */ #define PAGE_SIZE PAGE_SIZE_8K /* bytes/page */ #define PAGE_MASK PAGE_MASK_8K +#define PAGE_SHIFT_MAX PAGE_SHIFT_4M +#define PAGE_SIZE_MAX PAGE_SIZE_4M +#define PAGE_MASK_MAX PAGE_MASK_4M #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ #define DEV_BSIZE (1<<DEV_BSHIFT) |