Rev 3783 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3783 | Rev 3864 | ||
|---|---|---|---|
| Line 39... | Line 39... | ||
| 39 | #include <arch/sun4v/md.h> |
39 | #include <arch/sun4v/md.h> |
| 40 | #include <arch/sun4v/hypercall.h> |
40 | #include <arch/sun4v/hypercall.h> |
| 41 | #include <arch/mm/page.h> |
41 | #include <arch/mm/page.h> |
| 42 | 42 | ||
| 43 | /* maximum MD size estimate (in bytes) */ |
43 | /* maximum MD size estimate (in bytes) */ |
| 44 | #define MD_MAX_SIZE (16 * 1024) |
44 | #define MD_MAX_SIZE (64 * 1024) |
| 45 | 45 | ||
| 46 | /** element types (element tag values) */ |
46 | /** element types (element tag values) */ |
| 47 | #define LIST_END 0x0 /**< End of element list */ |
47 | #define LIST_END 0x0 /**< End of element list */ |
| 48 | #define NODE 0x4e /**< Start of node definition */ |
48 | #define NODE 0x4e /**< Start of node definition */ |
| 49 | #define NODE_END 0x45 /**< End of node definition */ |
49 | #define NODE_END 0x45 /**< End of node definition */ |
| Line 277... | Line 277... | ||
| 277 | */ |
277 | */ |
| 278 | void md_init(void) |
278 | void md_init(void) |
| 279 | { |
279 | { |
| 280 | uint64_t retval = __hypercall_fast2(MACH_DESC, KA2PA(mach_desc), |
280 | uint64_t retval = __hypercall_fast2(MACH_DESC, KA2PA(mach_desc), |
| 281 | MD_MAX_SIZE); |
281 | MD_MAX_SIZE); |
| - | 282 | ||
| 282 | retval = retval; |
283 | retval = retval; |
| 283 | if (retval != EOK) { |
284 | if (retval != EOK) { |
| 284 | printf("Could not retrieve machine description, error = %d.\n", |
285 | printf("Could not retrieve machine description, error = %d.\n", |
| 285 | retval); |
286 | retval); |
| 286 | } |
287 | } |