Subversion Repositories HelenOS

Rev

Rev 3022 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3022 Rev 4055
Line 39... Line 39...
39
#include <arch/mm/frame.h>
39
#include <arch/mm/frame.h>
40
 
40
 
41
#define PAGE_SIZE   FRAME_SIZE
41
#define PAGE_SIZE   FRAME_SIZE
42
#define PAGE_WIDTH  FRAME_WIDTH
42
#define PAGE_WIDTH  FRAME_WIDTH
43
 
43
 
44
#define PAGE_COLOR_BITS 0           /* dummy */
-
 
45
 
-
 
46
#ifdef KERNEL
44
#ifdef KERNEL
47
 
45
 
48
/** Bit width of the TLB-locked portion of kernel address space. */
46
/** Bit width of the TLB-locked portion of kernel address space. */
49
#define KERNEL_PAGE_WIDTH       28  /* 256M */
47
#define KERNEL_PAGE_WIDTH       28  /* 256M */
50
#define IO_PAGE_WIDTH           26  /* 64M */
48
#define IO_PAGE_WIDTH           26  /* 64M */
-
 
49
#define FW_PAGE_WIDTH           28  /* 256M */
-
 
50
 
-
 
51
#define USPACE_IO_PAGE_WIDTH        12  /* 4K */
-
 
52
 
-
 
53
 
-
 
54
/*
-
 
55
 * Statically mapped IO spaces - offsets to 0xe...00 of virtual addresses
-
 
56
 * because of "minimal virtual bits implemented is 51" it is possible to
-
 
57
 * have values up to 0x0007000000000000
-
 
58
 */
-
 
59
 
-
 
60
/* Firmware area (bellow 4GB in phys mem) */
-
 
61
#define FW_OFFSET             0x00000000F0000000
-
 
62
/* Legacy IO space */
-
 
63
#define IO_OFFSET             0x0001000000000000
-
 
64
/* Videoram - now mapped to 0 as VGA text mode vram on 0xb8000 */
-
 
65
#define VIO_OFFSET            0x0002000000000000
51
 
66
 
52
 
67
 
53
#define PPN_SHIFT           12
68
#define PPN_SHIFT           12
54
 
69
 
55
#define VRN_SHIFT           61
70
#define VRN_SHIFT           61