Changeset f8ddd17 in mainline for kernel/genarch/src/fb/fb.c


Ignore:
Timestamp:
2006-12-09T20:20:50Z (18 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/genarch/src/fb/fb.c

    r9ab9c2ec rf8ddd17  
    4646#include <bitops.h>
    4747#include <print.h>
     48#include <ddi/ddi.h>
    4849
    4950#include "helenos.xbm"
     51
     52static parea_t fb_parea;                /**< Physical memory area for fb. */
    5053
    5154SPINLOCK_INITIALIZE(fb_lock);
     
    435438        columns = x / COL_WIDTH;
    436439
     440        fb_parea.pbase = (uintptr_t) addr;
     441        fb_parea.vbase = (uintptr_t) fbaddress;
     442        fb_parea.frames = SIZE2FRAMES(fbsize);
     443        fb_parea.cacheable = false;
     444        ddi_parea_register(&fb_parea);
     445
    437446        sysinfo_set_item_val("fb", NULL, true);
    438447        sysinfo_set_item_val("fb.kind", NULL, 1);
     
    442451        sysinfo_set_item_val("fb.visual", NULL, visual);
    443452        sysinfo_set_item_val("fb.address.physical", NULL, addr);
     453        sysinfo_set_item_val("fb.address.color", NULL, PAGE_COLOR((uintptr_t)
     454                fbaddress));
    444455        sysinfo_set_item_val("fb.invert-colors", NULL, invert_colors);
    445456
Note: See TracChangeset for help on using the changeset viewer.