diff options
author | Richard Braun <rbraun@sceen.net> | 2012-10-10 21:18:28 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2012-10-10 21:18:28 +0200 |
commit | cceb9712ab7e66fb64d07cd575d5a743e86e2972 (patch) | |
tree | 671b11f69966dd778e0b9bf9e406e8cc50957645 /arch/x86/machine/param.h | |
parent | 9fca6eb45592792df43bca63fb1bb7979254115e (diff) |
x86: merge the init and boot modules
There is actually already an existing init module, in kern. Avoid name
issues and call the result "boot".
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). |