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 --- applications/init/main.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'applications/init') diff --git a/applications/init/main.cpp b/applications/init/main.cpp index e0019b5..1a39513 100644 --- a/applications/init/main.cpp +++ b/applications/init/main.cpp @@ -1,7 +1,7 @@ -#include +#include -using mercury::syscall::encoded_color; -using mercury::syscall::color; +using hilbert::syscall::encoded_color; +using hilbert::syscall::color; encoded_color *fb; uint32_t fb_width; @@ -10,7 +10,7 @@ uint32_t fb_pitch; int main(int, char **) { - mercury::syscall::get_framebuffer(fb, fb_width, fb_height, fb_pitch); + hilbert::syscall::get_framebuffer(fb, fb_width, fb_height, fb_pitch); for (uint32_t y = 0; y < fb_height; ++y) for (uint32_t x = 0; x < fb_width; ++x) { color c = { @@ -18,9 +18,8 @@ int main(int, char **) { .g = (uint8_t)(y * 255 / fb_height), .b = (uint8_t)(x * 255 / fb_width) }; - fb[y * fb_pitch + x] = mercury::syscall::encode_color(c); + fb[y * fb_pitch + x] = hilbert::syscall::encode_color(c); } - mercury::syscall::draw_framebuffer(); //*(int *)0x12345678 = 0; //fb_width = *(uint32_t *)0xffffffffc0000000; -- cgit v1.2.3