diff options
Diffstat (limited to 'src/kernel/graphics/vesa.c')
-rw-r--r-- | src/kernel/graphics/vesa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index 9563f4f..8dc5929 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -67,12 +67,13 @@ uint16_t *vbe_get_modes() uint16_t *mode_ptr = (uint16_t *) info->video_modes; size_t number_modes = 1; for (uint16_t *p = mode_ptr; *p != 0xFFFF; p++) number_modes++; + serial_write_dec(number_modes); uint16_t *ret = kmalloc(sizeof(uint16_t) * number_modes); for (size_t i = 0; i < number_modes; i++) ret[i] = ((uint16_t *) info->video_modes)[i]; - return mode_ptr; + return ret; } struct vbe_mode_info *vbe_get_mode_info(uint16_t mode) |