Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
syscall_conventions.h File Reference

Register conventions for system call dispatch. More...

#include <array>
#include <cstdint>
#include "contur/arch/register_file.h"

Go to the source code of this file.

Namespaces

namespace  contur

Variables

constexpr std::uint8_t contur::SYSCALL_ID_REGISTER = static_cast<std::uint8_t>(Register::R0)
 Register used to pass syscall id and receive return value.
constexpr std::array< std::uint8_t, 4 > contur::SYSCALL_ARG_REGISTERS
 Registers used to pass syscall arguments.
constexpr std::uint8_t contur::SYSCALL_STATUS_REGISTER = static_cast<std::uint8_t>(Register::R7)
 Register used to store syscall status/error code.

Detailed Description

Register conventions for system call dispatch.

Definition in file syscall_conventions.h.