[arch][mmu] clean up page size definitions in each arch's defines.h

No real functional change except how the smaller ARCH_DEFAULT_PAGE_SIZE
is now computed and set in defines.h instead of rules.mk for arch/arm to
be consistent with the other arch that has a large/small build (riscv).
This commit is contained in:
Travis Geiselbrecht
2025-08-31 19:16:58 -07:00
parent 0a8a4354a9
commit cc9c3a053c
13 changed files with 78 additions and 78 deletions

View File

@@ -7,10 +7,10 @@
*/
#pragma once
#define PAGE_SIZE 4096
#define PAGE_SIZE_SHIFT 12
#define PAGE_SIZE (1U << PAGE_SIZE_SHIFT)
// XXX is this right?
#define CACHE_LINE 32
#define ARCH_DEFAULT_STACK_SIZE 4096
#define ARCH_DEFAULT_STACK_SIZE PAGE_SIZE