Subversion Repositories HelenOS

Rev

Rev 3479 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3479 Rev 3607
Line 29... Line 29...
29
#ifndef BOOT_BALLOC_H_
29
#ifndef BOOT_BALLOC_H_
30
#define BOOT_BALLOC_H_
30
#define BOOT_BALLOC_H_
31
 
31
 
32
#include <types.h>
32
#include <types.h>
33
 
33
 
34
/*
-
 
35
 * SmartFirmware unfortunatelly fails to claim physical memory
-
 
36
 * for the boot allocator if the requested memory is too big
-
 
37
 * (roughly 512 kB and more). SmartFirmware runs on machines
-
 
38
 * containing newer versions of UltraSPARC processors. It
-
 
39
 * has been observed that the OFW tree is small enough for these
-
 
40
 * machines so that it can fit into 128 kB. This is a workaround how
-
 
41
 * to get rid of the memory claiming failure.
-
 
42
 */
-
 
43
#define BALLOC_MAX_SIZE     (128 * 1024)
34
#define BALLOC_MAX_SIZE     (128 * 1024)
44
 
35
 
45
typedef struct {
36
typedef struct {
46
    uintptr_t base;
37
    uintptr_t base;
47
    size_t size;
38
    size_t size;