diff options
author | Brett Weiland <brett_weiland@bpcspace.com> | 2021-08-24 14:09:29 -0500 |
---|---|---|
committer | Brett Weiland <brett_weiland@bpcspace.com> | 2021-08-24 14:09:29 -0500 |
commit | 9b22a6965579ea1867aea291d910c96f386b518b (patch) | |
tree | d06dbb9c4708f1cc713bcb115b32ff9bce4cf9b9 /src/kernel/video.c | |
parent | bad4b0e9bdfee336bfc1c23761408279eaec1558 (diff) |
major backup 8.24.21
Diffstat (limited to 'src/kernel/video.c')
-rw-r--r-- | src/kernel/video.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/kernel/video.c b/src/kernel/video.c new file mode 100644 index 0000000..0433ce2 --- /dev/null +++ b/src/kernel/video.c @@ -0,0 +1,10 @@ +#include <printf.h> +#include <video.h> + +//to be implimented when paging is set up + +void dump_video() { + struct mode_info *video = (struct mode_info *)0x600; + printf("Video info:\nx:\t%u\ny:\t%u\nbbp:\t%u\nloc:\t0x%p\n", + video->width, video->height, video->bpp, video->framebuffer); +} |