Barrelfish
Macros | Functions
kernel_multiboot.h File Reference

Relay header for multiboot structures and kernel-specific function definitions. More...

Macros

#define MBADDR_ASSTRING(vaddr)   (char * NTS)TC((uintptr_t)(local_phys_to_mem(vaddr)))
 

Functions

struct multiboot_modinfo * multiboot_find_module (const char *basename)
 Return multiboot module by trailing pathname. More...
 
uintptr_t multiboot_end_addr (struct multiboot_info *mi)
 Return end address of multiboot image. More...
 

Detailed Description

Relay header for multiboot structures and kernel-specific function definitions.

Macro Definition Documentation

#define MBADDR_ASSTRING (   vaddr)    (char * NTS)TC((uintptr_t)(local_phys_to_mem(vaddr)))

Convert a 32bit address from the Multiboot header to a native virtual address as a char pointer.

Function Documentation

uintptr_t multiboot_end_addr ( struct multiboot_info mi)

Return end address of multiboot image.

This function is used to compute a safe location to place the boot kernel.

struct multiboot_modinfo* multiboot_find_module ( const char *  pathname)

Return multiboot module by trailing pathname.

Returns a pointer to the multiboot module which has a trailing pathname of 'pathname' or NULL if there is none.

Parameters
pathnameTrailing pathname of module to look for.
Returns
Pointer to multiboot module or NULL if none found.