Changeset f8ddd17 in mainline for kernel/arch/ia32/src


Ignore:
Timestamp:
2006-12-09T20:20:50Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b82a13c
Parents:
9ab9c2ec
Message:

Rework support for virtually indexed cache.
Instead of repeatedly flushing the data cache, which was a huge overkill, refuse to create an illegal address alias
in the kernel (again) and allocate appropriate page color in userspace instead. Extend the detection also to
SYS_PHYSMEM_MAP syscall.

Add support for tracking physical memory areas mappable by SYS_PHYSMEM_MAP.

Lots of coding style changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/drivers/ega.c

    r9ab9c2ec rf8ddd17  
    4747#include <console/console.h>
    4848#include <sysinfo/sysinfo.h>
     49#include <ddi/ddi.h>
    4950
    5051/*
     
    5253 * Simple and short. Function for displaying characters and "scrolling".
    5354 */
     55
     56static parea_t ega_parea;       /**< Physical memory area for EGA video RAM. */
    5457
    5558SPINLOCK_INITIALIZE(egalock);
     
    8083        stdout = &ega_console;
    8184       
     85        ega_parea.pbase = VIDEORAM;
     86        ega_parea.vbase = (uintptr_t) videoram;
     87        ega_parea.frames = 1;
     88        ega_parea.cacheable = false;
     89        ddi_parea_register(&ega_parea);
     90
    8291        sysinfo_set_item_val("fb", NULL, true);
    8392        sysinfo_set_item_val("fb.kind", NULL, 2);
     
    8594        sysinfo_set_item_val("fb.height", NULL, ROWS);
    8695        sysinfo_set_item_val("fb.address.physical", NULL, VIDEORAM);
     96        sysinfo_set_item_val("fb.address.color", NULL, PAGE_COLOR((uintptr_t)
     97                videoram));
    8798       
    8899#ifndef CONFIG_FB
Note: See TracChangeset for help on using the changeset viewer.