Changeset 7f5b37a in mainline for fb/fb.c


Ignore:
Timestamp:
2006-05-28T10:05:03Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b99e40
Parents:
01ff41c
Message:

Sync with kernel.
Make map_physmem() pass address space area flags instead of boolean switch.

Try to map fb memory with caching enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fb/fb.c

    r01ff41c r7f5b37a  
    2929
    3030#include <stdio.h>
     31#include <stdlib.h>
     32#include <unistd.h>
     33#include <string.h>
    3134#include <ddi.h>
    3235#include <task.h>
    33 #include <stdlib.h>
    34 #include <ddi.h>
    3536#include <sysinfo.h>
    3637#include <align.h>
    3738#include <as.h>
    3839#include <ipc/fb.h>
    39 
    40 
    4140#include <ipc/ipc.h>
     41#include <ipc/ns.h>
    4242#include <ipc/services.h>
    43 #include <unistd.h>
    44 #include <stdlib.h>
    45 #include <ipc/ns.h>
    46 
    4743#include <kernel/errno.h>
    4844#include <async.h>
    49 
    50 
    5145#include "font-8x16.h"
    52 #include <string.h>
    53 
    5446#include "helenos.xbm"
    5547#include "fb.h"
     
    6961#define H_NO_VFBS 3
    7062#define V_NO_VFBS 3
    71 
    7263
    7364static void fb_putchar(int item,char ch);
     
    7768        unsigned int BGCOLOR,unsigned int FGCOLOR,unsigned int LOGOCOLOR);
    7869
    79 
    8070unsigned int mod_col(unsigned int col,int mod);
    81 
    82 
    8371
    8472static int init_fb(void)
     
    10290
    10391        fb_addr=ALIGN_UP(((__address)set_maxheapsize(USER_ADDRESS_SPACE_SIZE_ARCH>>1)),PAGE_SIZE);
    104 
    105 
    10692       
    10793        map_physmem(task_get_id(),(void *)((__address)fb_ph_addr),(void *)fb_addr,
    108                     (fb_scanline*fb_height+PAGE_SIZE-1)>>PAGE_WIDTH,1);
     94                    (fb_scanline*fb_height+PAGE_SIZE-1)>>PAGE_WIDTH,
     95                    AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE);
    10996       
    11097        fb_init(0,fb_addr, fb_width, fb_height, fb_bpp, fb_scanline,
Note: See TracChangeset for help on using the changeset viewer.