diff options
| author | Martin Reed <martin@martinreed.co.uk> | 2022-06-30 10:45:21 +0000 |
|---|---|---|
| committer | Martin Reed <martin@martinreed.co.uk> | 2022-06-30 10:45:21 +0000 |
| commit | 452a390325ea98d88080465a616765d8b9d96437 (patch) | |
| tree | 76f0db522a21b578669075a26651f8684de3f126 /src | |
| parent | 826f9cf2f39acf85cf78d4094d8f61e33372a3f2 (diff) | |
| download | box64-452a390325ea98d88080465a616765d8b9d96437.tar.gz box64-452a390325ea98d88080465a616765d8b9d96437.zip | |
Enable 64k page size eg Ampere A1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/custommem.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c index 02c371c9..186543fb 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -42,7 +42,10 @@ static uintptr_t* box64_jmptbldefault1[1<<JMPTABL_SHIFT]; static uintptr_t box64_jmptbldefault0[1<<JMPTABL_SHIFT]; #endif static pthread_mutex_t mutex_prot; -#if defined(PAGE16K) +#if defined(PAGE64K) +#define MEMPROT_SHIFT 16 +#define MEMPROT_SHIFT2 (16+16) +#elif defined(PAGE16K) #define MEMPROT_SHIFT 14 #define MEMPROT_SHIFT2 (16+14) #else |