Changeset 2e9eae2 in mainline for test/mm/mapping1/test.c


Ignore:
Timestamp:
2006-06-23T16:03:53Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
757551a3
Parents:
a832dd7
Message:

Changed interface of frame_alloc/free to use address of frame instead of the pfn.
This makes it impossible to use >4GB of memory on 32-bit machines, but who cares…

File:
1 edited

Legend:

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

    ra832dd7 r2e9eae2  
    4848        printf("Memory management test mapping #1\n");
    4949
    50         frame0 = PA2KA(PFN2ADDR(frame_alloc(ONE_FRAME, FRAME_KA)));
    51         frame1 = PA2KA(PFN2ADDR(frame_alloc(ONE_FRAME, FRAME_KA)));
     50        frame0 = frame_alloc(ONE_FRAME, FRAME_KA);
     51        frame1 = frame_alloc(ONE_FRAME, FRAME_KA);
    5252
    5353        printf("Writing %#x to physical address %p.\n", VALUE0, KA2PA(frame0));
Note: See TracChangeset for help on using the changeset viewer.