summaryrefslogtreecommitdiff
path: root/applications
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-01-13 19:14:58 -0500
committerBenji Dial <benji@benjidial.net>2024-01-13 19:14:58 -0500
commite9898e829b8df7c0b16faec1ce490369c53fd78e (patch)
tree0959298e7af3e5b9e40ac4d6dec0cec089105eac /applications
parent4130562b1555cabe441efe9420cebe12e7ed8d39 (diff)
downloadhilbert-os-e9898e829b8df7c0b16faec1ce490369c53fd78e.tar.gz
minimal cpu exception handling
Diffstat (limited to 'applications')
-rw-r--r--applications/init/main.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}