diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-08-18 21:16:30 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-08-18 21:16:30 +0200 |
commit | f35d5ee5b036b7b4fa59b1839f52fca15b7f99f9 (patch) | |
tree | 3971890bfe57a66680d85baf2ab358b7b8496432 /sys/src/9/bcm64/mem.h | |
parent | 3fc8d1bdae10955e0b31ee1766d17367e0d0caa1 (diff) |
bcm64: add support for more than 1GB of ram (untested)
this adds a 4GB KMAP window into the kernel address space
so we can access all physical ram on raspberry pi 4 for
user pages.
note that kernel memory above KZERO is still limited
to 1GB because of DMA restrictions.
Diffstat (limited to 'sys/src/9/bcm64/mem.h')
-rw-r--r-- | sys/src/9/bcm64/mem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/bcm64/mem.h b/sys/src/9/bcm64/mem.h index 62b818aa4..183cb8285 100644 --- a/sys/src/9/bcm64/mem.h +++ b/sys/src/9/bcm64/mem.h @@ -39,7 +39,8 @@ #define STACKALIGN(sp) ((sp) & ~7) /* bug: assure with alloc */ #define TRAPFRAMESIZE (38*8) -#define KSEG0 (0xFFFFFFFF00000000ULL) +#define KSEG0 (0xFFFFFFFE00000000ULL) +#define KMAP (0xFFFFFFFE00000000ULL) #define FRAMEBUFFER (0xFFFFFFFF00000000ULL|PTEWT) #define VGPIO 0 /* virtual gpio for pi3 ACT LED */ @@ -54,7 +55,6 @@ #define SPINTABLE (KZERO+0xd8) #define CONFADDR (KZERO+0x100) -#define VECTORSEL2 (0x1000) #define REBOOTADDR (0x1c00) /* reboot code - physical address */ #define VCBUFFER (KZERO+0x3400) /* videocore mailbox buffer */ |