riscv: cleanup architecture macro checks
* We really should get out of the habbit of making up our own architecture defines. * __riscv with an additional __riscv_xlen is the standard that developed... let's just roll with it. Change-Id: Ieb777d48340ae25a6d66f66133afa0ec5c6da9b6 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4402 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
f40bacae87
commit
372b901dfe
@@ -18,7 +18,7 @@
|
||||
#define KERNEL_LOAD_BASE_64_BIT 0xffffffc000000000
|
||||
|
||||
|
||||
#if defined(__riscv64__)
|
||||
#if (defined(__riscv) && __riscv_xlen == 64)
|
||||
|
||||
// Base of the kernel address space.
|
||||
#define KERNEL_BASE 0xffffffc000000000
|
||||
@@ -35,7 +35,7 @@
|
||||
#define USER_STACK_REGION (USER_BASE + 0x3000000000)
|
||||
#define USER_STACK_REGION_SIZE ((USER_TOP - USER_STACK_REGION) + 1)
|
||||
|
||||
#else /* ! __riscv64__ */
|
||||
#else /* ! riscv64 */
|
||||
#warning Unknown RISC-V Architecture!
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user