diff options
Diffstat (limited to 'arch/x86/machine/param.h')
-rw-r--r-- | arch/x86/machine/param.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/x86/machine/param.h b/arch/x86/machine/param.h index 2b5553d7..d806b192 100644 --- a/arch/x86/machine/param.h +++ b/arch/x86/machine/param.h @@ -18,7 +18,6 @@ #ifndef _X86_PARAM_H #define _X86_PARAM_H -#include <machine/boot.h> #include <lib/macros.h> #define __LITTLE_ENDIAN__ @@ -38,18 +37,20 @@ /* * 4 KiB virtual pages. */ -#define PAGE_SHIFT 12 +#define PAGE_SHIFT 12 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SIZE - 1) /* - * User space boundaries. + * Kernel stack size for threads and interrupt handlers. */ -#define VM_MIN_ADDRESS DECL_CONST(0, UL) -#define VM_MAX_ADDRESS KERNEL_OFFSET +#define STACK_SIZE PAGE_SIZE /* - * Kernel stack size for threads and interrupt handlers. + * User space boundaries. */ -#define STACK_SIZE 4096 +#define VM_MIN_ADDRESS DECL_CONST(0, UL) +#define VM_MAX_ADDRESS DECL_CONST(0xc0000000, UL) /* * Size of a linear mapping of PTEs (see the pmap module). |