Changeset 96348adc in mainline for kernel/test/mm/mapping1.c
- Timestamp:
- 2006-12-12T17:24:58Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7e13972
- Parents:
- 34db7fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/mapping1.c
r34db7fa r96348adc 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 #include <print.h> 29 30 #include <test.h> … … 35 36 #include <debug.h> 36 37 37 #ifdef CONFIG_BENCH38 #include <arch/cycle.h>39 #endif40 41 38 #define PAGE0 0x10000000 42 39 #define PAGE1 (PAGE0+PAGE_SIZE) … … 45 42 #define VALUE1 0x89abcdef 46 43 47 voidtest_mapping1(void)44 char * test_mapping1(void) 48 45 { 49 #ifdef CONFIG_BENCH50 uint64_t t0 = get_cycle();51 #endif52 46 uintptr_t frame0, frame1; 53 47 uint32_t v0, v1; 54 55 printf("Memory management test mapping #1\n");56 48 57 49 frame0 = (uintptr_t) frame_alloc(ONE_FRAME, FRAME_KA); … … 88 80 ASSERT(v1 == 0); 89 81 90 printf("Test passed.\n"); 91 #ifdef CONFIG_BENCH 92 uint64_t dt = get_cycle() - t0; 93 printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt); 94 #endif 82 return NULL; 95 83 }
Note:
See TracChangeset
for help on using the changeset viewer.