Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/fb/msim.c

    rd9fae235 rb3d513f  
    2929
    3030/** @defgroup msimfb MSIM text console
    31  * @brief HelenOS MSIM text console.
     31 * @brief       HelenOS MSIM text console.
    3232 * @ingroup fbs
    3333 * @{
    34  */
     34 */ 
    3535/** @file
    3636 */
     
    4141#include <as.h>
    4242#include <ddi.h>
    43 #include <errno.h>
    4443
    4544#include "serial_console.h"
     
    5857int msim_init(void)
    5958{
    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");
    6460        virt_addr = (char *) as_get_mappable_page(1);
    6561       
    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)
    6863                return -1;
    6964       
     
    7469}
    7570
    76 /** @}
     71/**
     72 * @}
    7773 */
Note: See TracChangeset for help on using the changeset viewer.