Barrelfish
Functions
multiboot.c File Reference

Multiboot utility functions. More...

Functions

struct multiboot_modinfo * multiboot_find_module (const char *pathname)
 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

Multiboot utility functions.

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.