Rev 2927 | Rev 3674 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2927 | Rev 3588 | ||
|---|---|---|---|
| Line 40... | Line 40... | ||
| 40 | /* |
40 | /* |
| 41 | * This is Ski-specific and certainly not sufficient |
41 | * This is Ski-specific and certainly not sufficient |
| 42 | * for real ia64 systems that provide memory map. |
42 | * for real ia64 systems that provide memory map. |
| 43 | */ |
43 | */ |
| 44 | #define MEMORY_SIZE (64 * 1024 * 1024) |
44 | #define MEMORY_SIZE (64 * 1024 * 1024) |
| 45 | #define MEMORY_BASE (64 * 1024 * 1024) |
45 | #define MEMORY_BASE (0 * 64 * 1024 * 1024) |
| - | 46 | ||
| - | 47 | #define ONE_TO_ONE_MAPPING_SIZE (256*1048576) // Mapped at start |
|
| 46 | 48 | ||
| 47 | #define ROM_BASE 0xa0000 //For ski |
49 | #define ROM_BASE 0xa0000 //For ski |
| 48 | #define ROM_SIZE (384 * 1024) //For ski |
50 | #define ROM_SIZE (384 * 1024) //For ski |
| 49 | void poke_char(int x,int y,char ch, char c); |
51 | void poke_char(int x,int y,char ch, char c); |
| - | 52 | ||
| - | 53 | uintptr_t last_frame; |
|
| - | 54 | ||
| 50 | void frame_arch_init(void) |
55 | void frame_arch_init(void) |
| 51 | { |
56 | { |
| 52 | zone_create(MEMORY_BASE >> FRAME_WIDTH, SIZE2FRAMES(MEMORY_SIZE), (MEMORY_SIZE) >> FRAME_WIDTH, 0); |
- | |
| 53 | 57 | ||
| 54 | /* |
- | |
| 55 | * Blacklist ROM regions. |
58 | if(config.cpu_active==1) |
| 56 | */ |
59 | { |
| 57 | frame_mark_unavailable(ADDR2PFN(ROM_BASE), SIZE2FRAMES(ROM_SIZE)); |
60 | zone_create(MEMORY_BASE >> FRAME_WIDTH, SIZE2FRAMES(MEMORY_SIZE), (MEMORY_SIZE) >> FRAME_WIDTH, 0); |
| 58 | 61 | ||
| - | 62 | /* |
|
| - | 63 | * Blacklist ROM regions. |
|
| - | 64 | */ |
|
| - | 65 | //frame_mark_unavailable(ADDR2PFN(ROM_BASE), SIZE2FRAMES(ROM_SIZE)); |
|
| - | 66 | ||
| - | 67 | frame_mark_unavailable(ADDR2PFN(0), SIZE2FRAMES(1048576)); |
|
| - | 68 | last_frame=SIZE2FRAMES((VRN_KERNEL<<VRN_SHIFT)+ONE_TO_ONE_MAPPING_SIZE); |
|
| - | 69 | } |
|
| 59 | } |
70 | } |
| 60 | 71 | ||
| 61 | /** @} |
72 | /** @} |
| 62 | */ |
73 | */ |