MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cvmx_bootmem_init

Function cvmx_bootmem_init

freebsd/contrib/octeon-sdk/cvmx-bootmem.c:554–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554int 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
568uint64_t cvmx_bootmem_available_mem(uint64_t min_block_size)

Callers 5

mainFunction · 0.85
__cvmx_app_initFunction · 0.85
cvmx_user_app_initFunction · 0.85
octeon_boot_params_initFunction · 0.85

Calls 1

cvmx_dprintfFunction · 0.70

Tested by

no test coverage detected