Changeset 82d56184 in mainline for kernel/test/mm/mapping1.c


Ignore:
Timestamp:
2011-06-01T21:05:19Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5cac9cd
Parents:
682cfceb (diff), 5d1b3aa (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 mainline changes.

File:
1 edited

Legend:

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

    r682cfceb r82d56184  
    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.