AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
i386.h
Go to the documentation of this file.
1#ifndef _PAGING_I386_H
2#define _PAGING_I386_H
3
4#include <core/system.h>
5
6/* i386: the bits of a page table entry, and an address's indexes in the
7 * page directory and in a page table. */
8
9#define PG_PRESENT 1
10#define PG_WRITE 2
11#define PG_USER 4
12
13#define VTBL(n) (((n) >> 12) & 0x3ff)
14#define VDIR(n) (((n) >> 22) & 0x3ff)
15
16#define PHYSADDR(s) ((s) & ~0xfff)
17
18#endif /* ! _PAGING_I386_H */