Changes in uspace/srv/hid/fb/msim.c [d9fae235:b3d513f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/msim.c
rd9fae235 rb3d513f 29 29 30 30 /** @defgroup msimfb MSIM text console 31 * @brief 31 * @brief HelenOS MSIM text console. 32 32 * @ingroup fbs 33 33 * @{ 34 */ 34 */ 35 35 /** @file 36 36 */ … … 41 41 #include <as.h> 42 42 #include <ddi.h> 43 #include <errno.h>44 43 45 44 #include "serial_console.h" … … 58 57 int msim_init(void) 59 58 { 60 sysarg_t phys_addr; 61 if (sysinfo_get_value("fb.address.physical", &phys_addr) != EOK) 62 return -1; 63 59 void *phys_addr = (void *) sysinfo_value("fb.address.physical"); 64 60 virt_addr = (char *) as_get_mappable_page(1); 65 61 66 if (physmem_map((void *) phys_addr, virt_addr, 1, 67 AS_AREA_READ | AS_AREA_WRITE) != 0) 62 if (physmem_map(phys_addr, virt_addr, 1, AS_AREA_READ | AS_AREA_WRITE) != 0) 68 63 return -1; 69 64 … … 74 69 } 75 70 76 /** @} 71 /** 72 * @} 77 73 */
Note:
See TracChangeset
for help on using the changeset viewer.