Ignore:
Timestamp:
2009-02-16T18:50:48Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
06da55b
Parents:
17f168e
Message:

overhaul pareas: use one single physical area for the physical address space not belonging to physical memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/arch/sparc64/src/sgcn.c

    r17f168e rae318d3  
    9898void sgcn_init(void)
    9999{
    100         sram_virt_addr = (uintptr_t) as_get_mappable_page(
    101                 sysinfo_value("sram.area.size"));
    102         int result = physmem_map(
    103                 (void *) sysinfo_value("sram.address.physical"),
    104                 (void *) sram_virt_addr,
    105                 sysinfo_value("sram.area.size") / PAGE_SIZE,
    106                 AS_AREA_READ | AS_AREA_WRITE
    107                 );
    108         if (result != 0) {
     100        sram_virt_addr = (uintptr_t) as_get_mappable_page(sysinfo_value("sram.area.size"));
     101        if (physmem_map((void *) sysinfo_value("sram.address.physical"),
     102            (void *) sram_virt_addr, sysinfo_value("sram.area.size") / PAGE_SIZE,
     103            AS_AREA_READ | AS_AREA_WRITE) != 0)
    109104                printf("SGCN: uspace driver could not map physical memory.");
    110         }
    111105       
    112106        sram_buffer_offset = sysinfo_value("sram.buffer.offset");
Note: See TracChangeset for help on using the changeset viewer.