Ignore:
Timestamp:
2018-11-18T01:01:02Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b3fcf36
Parents:
ec18e454
Message:

Revert "Remove realmode VESA code" - needs more work

This reverts commit 8781e9d05ac3f6aeaa3ad709c5af9efa3209b87a.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/multiboot/multiboot.c

    rec18e454 r8be3230  
    3535#include <typedefs.h>
    3636#include <genarch/multiboot/multiboot.h>
    37 #include <genarch/fb/bfb.h>
    3837#include <config.h>
    3938#include <stddef.h>
     
    169168                multiboot_memmap(info->mmap_length,
    170169                    (multiboot_memmap_t *) MULTIBOOT_PTR(info->mmap_addr));
    171 
    172 #ifdef CONFIG_FB
    173 
    174         /* Initialize framebuffer. */
    175         if ((info->flags & MULTIBOOT_INFO_FLAGS_FB) != 0) {
    176                 if (info->framebuffer_type != 1) {
    177                         /* Can't use this framebuffer. */
    178                         // FIXME: framebuffer_type == 2 is EGA mode, we should be able to use that.
    179                         return;
    180                 }
    181 
    182                 bfb_addr = info->framebuffer_addr;
    183                 bfb_width = info->framebuffer_width;
    184                 bfb_height = info->framebuffer_height;
    185                 bfb_bpp = info->framebuffer_bpp;
    186                 bfb_scanline = info->framebuffer_pitch;
    187                 bfb_red_pos = info->framebuffer_red_field_position;
    188                 bfb_red_size = info->framebuffer_red_mask_size;
    189                 bfb_green_pos = info->framebuffer_green_field_position;
    190                 bfb_green_size = info->framebuffer_green_mask_size;
    191                 bfb_blue_pos = info->framebuffer_blue_field_position;
    192                 bfb_blue_size = info->framebuffer_blue_mask_size;
    193         }
    194 
    195 #endif
    196170}
    197171
Note: See TracChangeset for help on using the changeset viewer.