diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-11 09:27:16 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-11 09:27:16 +0100 |
commit | aa5e2760711c092e1235105ebf097ac594512370 (patch) | |
tree | d191ead558d5913cc51df8734398c7fe981d80e9 /src/sysbin | |
parent | 0e50ada984473de20ba47c2ebdbe36b3dad78dd1 (diff) | |
download | kogata-aa5e2760711c092e1235105ebf097ac594512370.tar.gz kogata-aa5e2760711c092e1235105ebf097ac594512370.zip |
Fix process exiting.
Diffstat (limited to 'src/sysbin')
-rw-r--r-- | src/sysbin/giosrv/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sysbin/giosrv/main.c b/src/sysbin/giosrv/main.c index 04e57ea..7827670 100644 --- a/src/sysbin/giosrv/main.c +++ b/src/sysbin/giosrv/main.c @@ -20,6 +20,12 @@ int main(int argc, char **argv) { ASSERT(r == 1); dbg_printf("[giosrv] Running on FB %dx%d\n", i.width, i.height); + void* fb_map = region_alloc(i.height * i.pitch, "Framebuffer"); + ASSERT(fb_map != 0); + + ASSERT(mmap_file(fbdev, 0, fb_map, i.height * i.pitch, MM_READ | MM_WRITE)); + memset(fb_map, 0, i.height * i.pitch); + while(true); // nothing to do return 0; |