Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/mm/mapping1.c

    r7e752b2 rf66b565  
    3535#include <typedefs.h>
    3636#include <debug.h>
     37#include <arch.h>
    3738
    3839#define PAGE0  0x10000000
     
    5859        *((uint32_t *) frame1) = VALUE1;
    5960       
     61        page_table_lock(AS, true);
     62
    6063        TPRINTF("Mapping virtual address %p to physical address %p.\n",
    6164            (void *) PAGE0, (void *) KA2PA(frame0));
     
    6568            (void *) PAGE1, (void *) KA2PA(frame1));
    6669        page_mapping_insert(AS_KERNEL, PAGE1, KA2PA(frame1), PAGE_PRESENT | PAGE_WRITE);
     70
     71        page_table_unlock(AS, true);
    6772       
    6873        v0 = *((uint32_t *) PAGE0);
Note: See TracChangeset for help on using the changeset viewer.