31,7 → 31,20 |
|
#include <types.h> |
|
#define BALLOC_MAX_SIZE (1024 * 1024) |
/* |
* SmartFirmware unfortunatelly fails to claim physical memory |
* for the boot allocator if the requested memory is too big |
* (roughly 512 kB and more). SmartFirmware runs on machines |
* containing newer versions of UltraSPARC processors. It |
* has been observed that the OFW tree is small enough for these |
* machines so that it can fit into 256 kB. This is a workaround how |
* to get rid of the memory claiming failure. |
*/ |
#if defined (SMART_FIRMWARE) |
#define BALLOC_MAX_SIZE (256 * 1024) |
#else |
#define BALLOC_MAX_SIZE (1024 * 1024) |
#endif |
|
typedef struct { |
uintptr_t base; |