summaryrefslogtreecommitdiff
path: root/applications
diff options
context:
space:
mode:
Diffstat (limited to 'applications')
-rw-r--r--applications/init/main.cpp11
-rw-r--r--applications/link.ld4
2 files changed, 7 insertions, 8 deletions
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 <mercury/syscall.hpp>
+#include <hilbert/syscall.hpp>
-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;
diff --git a/applications/link.ld b/applications/link.ld
index eaba220..f8c09a2 100644
--- a/applications/link.ld
+++ b/applications/link.ld
@@ -18,13 +18,13 @@ SECTIONS {
*(.text .text.*)
} : rx
- . = ALIGN(0x200000);
+ . = ALIGN(4096);
.rodata : {
*(.rodata .rodata.*)
} : ro
- . = ALIGN(0x200000);
+ . = ALIGN(4096);
.data : {
*(.data .data.*)