Subversion Repositories HelenOS

Rev

Rev 3343 | Rev 3397 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3343 Rev 3365
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 256 kB. This is a workaround how
-
 
41
 * to get rid of the memory claiming failure.
-
 
42
 */
-
 
43
#if defined (SMART_FIRMWARE)
-
 
44
    #define BALLOC_MAX_SIZE     (256 * 1024)
-
 
45
#else
34
#define BALLOC_MAX_SIZE     (1024 * 1024)
46
    #define BALLOC_MAX_SIZE     (1024 * 1024)
-
 
47
#endif
35
 
48
 
36
typedef struct {
49
typedef struct {
37
    uintptr_t base;
50
    uintptr_t base;
38
    size_t size;
51
    size_t size;
39
} ballocs_t;
52
} ballocs_t;