Changeset bbf5657 in mainline


Ignore:
Timestamp:
2006-02-13T23:22:05Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fe050b7
Parents:
d7d6385
Message:

Added support for 24-bit framebuffer.

Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rd7d6385 rbbf5657  
    133133        generic/src/synch/semaphore.c \
    134134        generic/src/synch/waitq.c \
    135         generic/src/smp/ipi.c \
    136         generic/src/fb/font-8x16.c
     135        generic/src/smp/ipi.c
     136
     137## Framebuffer
     138ifeq ($(CONFIG_FB),y)
     139        GENERIC_SOURCES += \
     140                generic/src/fb/font-8x16.c \
     141                generic/src/fb/fb.c
     142        DEFS += -DCONFIG_FB
     143endif
    137144
    138145## Test sources
  • arch/mips32/src/console.c

    rd7d6385 rbbf5657  
    3232#include <arch/drivers/serial.h>
    3333#include <arch/drivers/msim.h>
     34#include <fb/fb.h>
    3435
    3536void console_init(void)
     
    4142        } else
    4243                msim_console();
     44#ifdef CONFIG_FB
     45        fb_init(0xb2000000, 640, 480);
     46#endif
    4347}
  • arch/mips32/src/mm/frame.c

    rd7d6385 rbbf5657  
    4343                arc_frame_init();
    4444        else {
    45                 zone_create(1, (config.memory_size >> FRAME_WIDTH)-1,1,0);
     45                zone_create(0, ADDR2PFN(config.memory_size), 1, 0);
     46                /*
     47                 * Blacklist interrupt vektor
     48                 */
     49                frame_mark_unavailable(0, 1);
    4650        }
    4751}
  • arch/ppc32/src/mm/frame.c

    rd7d6385 rbbf5657  
    3434void frame_arch_init(void)
    3535{
    36         zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0);
     36        /* First page is exception vector,
     37         * second is 'implementation specific', evade it too
     38         */
     39        zone_create(0, SIZE2FRAMES(config.memory_size), 2, 0);
     40        frame_mark_unavailable(0, 2);
    3741}
  • contrib/conf/gxemul.sh

    rd7d6385 rbbf5657  
    22# Uspace addresses outside of normal memory (kernel has std. 8 or 16MB)
    33# we place the pages at 24M
    4 gxemul -E testmips 0x81800000:init kernel.bin
     4        gxemul -E testmips -X 0x81800000:init kernel.bin
  • kernel.config

    rd7d6385 rbbf5657  
    4545! [ARCH=mips32] MIPS_MACHINE (choice)
    4646
     47# Framebuffer support
     48! [ARCH=mips32&MIPS_MACHINE=lgxemul] CONFIG_FB (y/n)
     49
    4750# Support for SMP
    4851! [ARCH=ia32|ARCH=amd64] CONFIG_SMP (y/n)
Note: See TracChangeset for help on using the changeset viewer.