Rev 3765 | Rev 3908 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3765 | Rev 3776 | ||
|---|---|---|---|
| Line 48... | Line 48... | ||
| 48 | 48 | ||
| 49 | #define MIN_ZONE_SIZE (64 * 1024) |
49 | #define MIN_ZONE_SIZE (64 * 1024) |
| 50 | 50 | ||
| 51 | #define MINCONF 1 |
51 | #define MINCONF 1 |
| 52 | 52 | ||
| 53 | uintptr_t last_frame; |
53 | uintptr_t last_frame = 0; |
| 54 | 54 | ||
| 55 | void frame_arch_init(void) |
55 | void frame_arch_init(void) |
| 56 | { |
56 | { |
| 57 | if (config.cpu_active == 1) { |
57 | if (config.cpu_active == 1) { |
| 58 | unsigned int i; |
58 | unsigned int i; |
| Line 68... | Line 68... | ||
| 68 | if (size > MIN_ZONE_SIZE) { |
68 | if (size > MIN_ZONE_SIZE) { |
| 69 | zone_create(abase >> FRAME_WIDTH, |
69 | zone_create(abase >> FRAME_WIDTH, |
| 70 | size >> FRAME_WIDTH, |
70 | size >> FRAME_WIDTH, |
| 71 | max(MINCONF, abase >> FRAME_WIDTH), |
71 | max(MINCONF, abase >> FRAME_WIDTH), |
| 72 | 0); |
72 | 0); |
| 73 | } |
73 | } |
| - | 74 | if (abase + size > last_frame) |
|
| - | 75 | last_frame = abase + size; |
|
| 74 | } |
76 | } |
| 75 | } |
77 | } |
| 76 | 78 | ||
| 77 | /* |
79 | /* |
| 78 | * Blacklist ROM regions. |
80 | * Blacklist ROM regions. |