Rev 3880 | Rev 3910 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3880 | Rev 3908 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | } phys_region_t; |
63 | } phys_region_t; |
64 | 64 | ||
65 | static count_t phys_regions_count = 0; |
65 | static count_t phys_regions_count = 0; |
66 | static phys_region_t phys_regions[MAX_REGIONS]; |
66 | static phys_region_t phys_regions[MAX_REGIONS]; |
67 | 67 | ||
- | 68 | uintptr_t end_frame = 0; |
|
- | 69 | ||
68 | 70 | ||
69 | /** Check whether frame is available |
71 | /** Check whether frame is available |
70 | * |
72 | * |
71 | * Returns true if given frame is generally available for use. |
73 | * Returns true if given frame is generally available for use. |
72 | * Returns false if given frame is used for physical memory |
74 | * Returns false if given frame is used for physical memory |
Line 234... | Line 236... | ||
234 | start_frame = frame + 1; |
236 | start_frame = frame + 1; |
235 | avail = true; |
237 | avail = true; |
236 | } |
238 | } |
237 | } |
239 | } |
238 | 240 | ||
- | 241 | end_frame = frame; |
|
- | 242 | ||
239 | frame_add_region(start_frame, frame); |
243 | frame_add_region(start_frame, end_frame); |
240 | 244 | ||
241 | /* Blacklist interrupt vector frame */ |
245 | /* Blacklist interrupt vector frame */ |
242 | frame_mark_unavailable(0, 1); |
246 | frame_mark_unavailable(0, 1); |
243 | 247 | ||
244 | /* Cleanup */ |
248 | /* Cleanup */ |