Skip to content

Syspage

System page memory object.

#include <zuzu/syspage.h>

Constants

Name Value Description
SYSPAGE_MAGIC 0x50050CA7 Syspage magic value.
SYSPAGE_MAX_DEVICES 120 The maximum number of devices that could fit into the syspage.
SYSPAGE_DEV_NAME_LEN 32 Maximum length for a device name.
SYSPAGE_VA 0x1000 Fixed virtual address of the syspage.
SYSPAGE (void *)SYSPAGE_VA Pointer for the syspage.

Structures

SyspageDevEntry

Struct representing a syspage device entry.

Field Type Description
name char Name of the device.

Syspage

Struct representing the syspage's layout.

Field Type Description
magic uint32_t Syspage magic value. Must be 0x50050CA7 "zoozoo cat".
kernel_ver uint32_t zuzu kernel version. Encoded as 0x00MMmmpp, where M: Major, m: minor, p: patch
version char zuzu version string. Something in the form of zuzu-v2.0-prowl
build char Build date.
machine char Machine zuzu is booting on.
cpu char CPU within the machine.
mem_total_kb size_t Total memory in kilobytes.
mem_free_kb size_t Free memory in kilobytes.
counter_freq uint64_t Counter frequency.
counter_boot uint64_t Counter value at boot.
dev_count uint8_t Device count.
_reserved uint32_t Reserved.
devs SyspageDevEntry Device names list.
_reserved2 uint32_t Reserved.