Changeset f66b565 in mainline


Ignore:
Timestamp:
2011-05-23T19:29:10Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
655f70b
Parents:
1cab9972
Message:

Fix test mapping1.

File:
1 edited

Legend:

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

    r1cab9972 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.