From c9a1266d219a83882735a3a8304f3824e0219cdb Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 15 Jan 2024 15:44:20 -0500 Subject: redo application paging and system calls, rename mercury to hilbert --- include/hilbert/syscall.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/hilbert/syscall.hpp (limited to 'include/hilbert/syscall.hpp') diff --git a/include/hilbert/syscall.hpp b/include/hilbert/syscall.hpp new file mode 100644 index 0000000..0e430d1 --- /dev/null +++ b/include/hilbert/syscall.hpp @@ -0,0 +1,24 @@ +#ifndef HILBERT_SYSCALL_HPP +#define HILBERT_SYSCALL_HPP + +#include + +namespace hilbert::syscall { + + typedef uint32_t encoded_color; + + struct [[gnu::packed]] color { + uint8_t r; + uint8_t g; + uint8_t b; + }; + + extern "C" encoded_color encode_color(color c); + + extern "C" void get_framebuffer(encoded_color *&framebuffer_out, + uint32_t &width_out, uint32_t &height_out, uint32_t &pitch_out + ); + +} + +#endif -- cgit v1.2.3