Kernelite 0.1.0
Kernelite is a minimalist, educational operating system kernel built from scratch. The project aims to recreate core components of the Linux architecture to explore the fundamentals of operating system design and hardware-software interaction.
Loading...
Searching...
No Matches
Functions
exit.c File Reference

Provides a mechanism to exit QEMU with a specific code. More...

#include "utils/kprintf.h"
#include <stdint.h>
Include dependency graph for exit.c:

Functions

void exit (uint32_t code)
 Exit the guest environment with a semihosting code.
 

Detailed Description

Provides a mechanism to exit QEMU with a specific code.

Uses the semihosting SYS_EXIT call (HLT #0xF000) to terminate the QEMU guest and propagate an exit code back to the host.

Author
Abhin Parekadan Jose
Date
2026-04-25

Function Documentation

◆ exit()

void exit ( uint32_t  code)

Exit the guest environment with a semihosting code.

Uses the ARM semihosting SYS_EXIT operation to terminate execution under QEMU and report the provided status code to the host.

Parameters
codeHost-visible exit status.