From e9898e829b8df7c0b16faec1ce490369c53fd78e Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 13 Jan 2024 19:14:58 -0500 Subject: minimal cpu exception handling --- applications/init/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'applications/init') diff --git a/applications/init/main.cpp b/applications/init/main.cpp index 7aa2a38..a3f75e4 100644 --- a/applications/init/main.cpp +++ b/applications/init/main.cpp @@ -9,6 +9,7 @@ uint32_t fb_height; uint32_t fb_pitch; int main(int, char **) { + mercury::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) { @@ -20,5 +21,6 @@ int main(int, char **) { fb[y * fb_pitch + x] = mercury::syscall::encode_color(c); } mercury::syscall::draw_framebuffer(); - return 0; + + return 1 / 0; } -- cgit v1.2.3