universalisos/website/docs/api-reference.md

1,013 B

sidebar_position
1

Universalisos API Reference

Welcome to the Universalisos API Reference. This section contains details on the available system calls, hypercalls, and internal core APIs.

System Calls (SVC)

Universalisos implements a basic system call interface via the SVC instruction (or equivalent exceptions on other architectures).

SYS_PRINT

Writes a string to the debugging console (UART).

Parameters:

  • arg0: Pointer to the null-terminated string.

SYS_GET_TIME

Retrieves the current system uptime in milliseconds.

Returns:

  • r0: System uptime in ms.

SYS_YIELD

Yields the processor to the next task in the ready queue.

Driver Framework API

The hypervisor defines a modular driver framework.

driver_register(struct driver *drv)

Registers a new hardware driver with the system.

device_init_all()

Initializes all registered devices in dependency order.

More detailed documentation is pending generation via the Mycelium TFW extension.