AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
system.h
Go to the documentation of this file.
1#ifndef _X86_SYSTEM_H
2#define _X86_SYSTEM_H
3
4#include <config.h>
5
6/* x86's page size, and the size that one page table maps */
7#define PAGE_SIZE (0x1000)
8#define PAGE_MASK (PAGE_SIZE - 1)
9#define PAGE_SHIFT (12)
10
11#if ARCH_BITS==32
12#define TABLE_SIZE (0x400 * PAGE_SIZE)
13#define TABLE_MASK (TABLE_SIZE - 1)
14#else
15#define TABLE_SIZE (0x200 * PAGE_SIZE)
16#define TABLE_MASK (TABLE_SIZE - 1)
17#endif
18
19/* where the kernel's half starts, on i386 */
20#define KERNEL_BREAK 0xC0000000
21
22#include_next <core/system.h>
23
24#endif /* ! _X86_SYSTEM_H */