Revision bd89f43f
b/hw/mac_nvram.c | ||
---|---|---|
43 | 43 |
uint8_t *data; |
44 | 44 |
}; |
45 | 45 |
|
46 |
#define DEF_SYSTEM_SIZE 0xc10 |
|
47 |
|
|
46 | 48 |
/* Direct access to NVRAM */ |
47 | 49 |
uint32_t macio_nvram_read (void *opaque, uint32_t addr) |
48 | 50 |
{ |
... | ... | |
151 | 153 |
nvr->data[end++] = '\0'; |
152 | 154 |
|
153 | 155 |
end = start + ((end - start + 15) & ~15); |
156 |
/* XXX: OpenBIOS is not able to grow up a partition. Leave some space for |
|
157 |
new variables. */ |
|
158 |
if (end < DEF_SYSTEM_SIZE) |
|
159 |
end = DEF_SYSTEM_SIZE; |
|
154 | 160 |
OpenBIOS_finish_partition(part_header, end - start); |
155 | 161 |
|
156 | 162 |
// free partition |
Also available in: Unified diff