Changeset 9970a5a in mainline for kernel/genarch


Ignore:
Timestamp:
2012-01-27T23:24:27Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7b3b571, fe56c08a
Parents:
d81eaf94 (diff), 221c9ec (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jakub/helenos/mm.

Location:
kernel/genarch/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/drivers/ega/ega.c

    rd81eaf94 r9970a5a  
    3737#include <genarch/drivers/ega/ega.h>
    3838#include <putchar.h>
    39 #include <mm/page.h>
     39#include <mm/km.h>
    4040#include <mm/as.h>
    4141#include <mm/slab.h>
    42 #include <arch/mm/page.h>
    4342#include <typedefs.h>
    4443#include <arch/asm.h>
     
    598597       
    599598        instance->base = base;
    600         instance->addr = (uint8_t *) hw_map(addr, EGA_VRAM_SIZE);
     599        instance->addr = (uint8_t *) km_map(addr, EGA_VRAM_SIZE,
     600            PAGE_WRITE | PAGE_NOT_CACHEABLE);
    601601        if (!instance->addr) {
    602602                LOG("Unable to EGA video memory.");
  • kernel/genarch/src/drivers/s3c24xx_uart/s3c24xx_uart.c

    rd81eaf94 r9970a5a  
    4545#include <mm/slab.h>
    4646#include <mm/page.h>
     47#include <mm/km.h>
    4748#include <sysinfo/sysinfo.h>
    4849#include <str.h>
     
    113114        uart_dev->data = uart;
    114115
    115         uart->io = (s3c24xx_uart_io_t *) hw_map(paddr, PAGE_SIZE);
     116        uart->io = (s3c24xx_uart_io_t *) km_map(paddr, PAGE_SIZE,
     117            PAGE_WRITE | PAGE_NOT_CACHEABLE);
    116118        uart->indev = NULL;
    117119
  • kernel/genarch/src/fb/fb.c

    rd81eaf94 r9970a5a  
    4040#include <console/console.h>
    4141#include <sysinfo/sysinfo.h>
    42 #include <mm/page.h>
     42#include <mm/km.h>
    4343#include <mm/slab.h>
    4444#include <align.h>
     
    587587        size_t glyphsize = FONT_GLYPHS * instance->glyphbytes;
    588588       
    589         instance->addr = (uint8_t *) hw_map((uintptr_t) props->addr, fbsize);
     589        instance->addr = (uint8_t *) km_map((uintptr_t) props->addr, fbsize,
     590            PAGE_WRITE | PAGE_NOT_CACHEABLE);
    590591        if (!instance->addr) {
    591592                LOG("Unable to map framebuffer.");
  • kernel/genarch/src/multiboot/multiboot.c

    rd81eaf94 r9970a5a  
    7777                        break;
    7878               
    79                 init.tasks[init.cnt].addr = PA2KA(mods[i].start);
     79                init.tasks[init.cnt].paddr = mods[i].start;
    8080                init.tasks[init.cnt].size = mods[i].end - mods[i].start;
    8181               
  • kernel/genarch/src/multiboot/multiboot2.c

    rd81eaf94 r9970a5a  
    4545{
    4646        if (init.cnt < CONFIG_INIT_TASKS) {
    47                 init.tasks[init.cnt].addr = PA2KA(module->start);
     47                init.tasks[init.cnt].paddr = module->start;
    4848                init.tasks[init.cnt].size = module->end - module->start;
    4949                multiboot_extract_command(init.tasks[init.cnt].name,
Note: See TracChangeset for help on using the changeset viewer.