next up previous contents
Next: Syscall Up: Hardware Abstraction Layer: Portable Previous: Cache Coherency Management   Contents

Subsections

Program Image Replacement

Kiosk/menu type programs (and others) often have the need to load a new image in place of the running image. This isn't the same as loading and executing a userland program, but instead replaces the running KOS image with an entirely new image (which may or may not be KOS based). This set of functions helps you with that task.

void arch_exec_at(const void * image, uint32 length, uint32 address)

Loads the program image located at image with a length of length bytes to the physical address address, and executes it. Note that address may overlap the existing program, and this is just fine. If necessary, this function will build a trampoline to copy and run the new image.

This function will never return.

void arch_exec(const void * image, uint32 length)

Same as arch_exec_at, but it loads the program at the default program location for the platform before running it.

This function will never return.



Dan Potter 2002-07-29