Changeset 7f5b37a in mainline
- Timestamp:
- 2006-05-28T10:05:03Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b99e40
- Parents:
- 01ff41c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fb/fb.c
r01ff41c r7f5b37a 29 29 30 30 #include <stdio.h> 31 #include <stdlib.h> 32 #include <unistd.h> 33 #include <string.h> 31 34 #include <ddi.h> 32 35 #include <task.h> 33 #include <stdlib.h>34 #include <ddi.h>35 36 #include <sysinfo.h> 36 37 #include <align.h> 37 38 #include <as.h> 38 39 #include <ipc/fb.h> 39 40 41 40 #include <ipc/ipc.h> 41 #include <ipc/ns.h> 42 42 #include <ipc/services.h> 43 #include <unistd.h>44 #include <stdlib.h>45 #include <ipc/ns.h>46 47 43 #include <kernel/errno.h> 48 44 #include <async.h> 49 50 51 45 #include "font-8x16.h" 52 #include <string.h>53 54 46 #include "helenos.xbm" 55 47 #include "fb.h" … … 69 61 #define H_NO_VFBS 3 70 62 #define V_NO_VFBS 3 71 72 63 73 64 static void fb_putchar(int item,char ch); … … 77 68 unsigned int BGCOLOR,unsigned int FGCOLOR,unsigned int LOGOCOLOR); 78 69 79 80 70 unsigned int mod_col(unsigned int col,int mod); 81 82 83 71 84 72 static int init_fb(void) … … 102 90 103 91 fb_addr=ALIGN_UP(((__address)set_maxheapsize(USER_ADDRESS_SPACE_SIZE_ARCH>>1)),PAGE_SIZE); 104 105 106 92 107 93 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); 109 96 110 97 fb_init(0,fb_addr, fb_width, fb_height, fb_bpp, fb_scanline, -
libc/generic/ddi.c
r01ff41c r7f5b37a 40 40 * @param vp Virtual address of the sterting page. 41 41 * @param pages Number of pages to map. 42 * @param writable If true, the mapping will be created writable.42 * @param flags Flags for the new address space area. 43 43 * 44 44 * @return 0 on success, EPERM if the caller lacks the CAP_MEM_MANAGER capability, … … 46 46 * was some problem in creating address space area. 47 47 */ 48 int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int writable)48 int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int flags) 49 49 { 50 50 task_id_t task_id; … … 55 55 arg.virt_base = vp; 56 56 arg.pages = pages; 57 arg. writable = writable;57 arg.flags = flags; 58 58 59 59 return __SYSCALL1(SYS_MAP_PHYSMEM, (sysarg_t) &arg); -
libc/include/ddi.h
r01ff41c r7f5b37a 32 32 #include <task.h> 33 33 34 extern int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int writable);34 extern int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int flags); 35 35 extern int iospace_enable(task_id_t id, void *ioaddr, unsigned long size); 36 36 extern int preemption_control(int enable);
Note:
See TracChangeset
for help on using the changeset viewer.