[kernel][vm] remove default KERNEL_ASPACE_BASE definition
Require the platform or arch to provide it. The default was pretty obsolete, assuming a 32bit arch with a split 50/50 mapping. May as well make it a forced arch thing so that it's known to be correct. Had to define it for OR1K, it was already defined for all the other (known) architectures.
This commit is contained in:
@@ -76,12 +76,13 @@ typedef struct vm_page {
|
||||
|
||||
#define VM_PAGE_FLAG_NONFREE (0x1)
|
||||
|
||||
// kernel address space
|
||||
// Kernel address space
|
||||
// Must be declared by the platform or architecture.
|
||||
#ifndef KERNEL_ASPACE_BASE
|
||||
#define KERNEL_ASPACE_BASE ((vaddr_t)0x80000000UL)
|
||||
#error KERNEL_ASPACE_BASE must be defined
|
||||
#endif
|
||||
#ifndef KERNEL_ASPACE_SIZE
|
||||
#define KERNEL_ASPACE_SIZE ((vaddr_t)0x80000000UL)
|
||||
#error KERNEL_ASPACE_SIZE must be defined
|
||||
#endif
|
||||
|
||||
STATIC_ASSERT(KERNEL_ASPACE_BASE + (KERNEL_ASPACE_SIZE - 1) > KERNEL_ASPACE_BASE);
|
||||
|
||||
Reference in New Issue
Block a user