| 552 | } |
| 553 | |
| 554 | int cvmx_bootmem_init(uint64_t mem_desc_addr) |
| 555 | { |
| 556 | /* Verify that the size of cvmx_spinlock_t meets our assumptions */ |
| 557 | if (sizeof(cvmx_spinlock_t) != 4) |
| 558 | { |
| 559 | cvmx_dprintf("ERROR: Unexpected size of cvmx_spinlock_t\n"); |
| 560 | return(-1); |
| 561 | } |
| 562 | if (!cvmx_bootmem_desc_addr) |
| 563 | cvmx_bootmem_desc_addr = mem_desc_addr; |
| 564 | return(0); |
| 565 | } |
| 566 | |
| 567 | |
| 568 | uint64_t cvmx_bootmem_available_mem(uint64_t min_block_size) |
no test coverage detected