Changeset 7e13972 in mainline for kernel/test/mm
- Timestamp:
- 2006-12-12T18:51:06Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cce6acf
- Parents:
- 96348adc
- Location:
- kernel/test/mm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/falloc1.c
r96348adc r7e13972 47 47 int i, order, run; 48 48 int allocated; 49 50 ASSERT(TEST_RUNS > 1); 49 50 if (TEST_RUNS < 2) 51 return "Test is compiled with TEST_RUNS < 2"; 52 51 53 if (frames == NULL) 52 54 return "Unable to allocate frames"; -
kernel/test/mm/mapping1.c
r96348adc r7e13972 63 63 printf("Value at virtual address %p is %#x.\n", PAGE1, v1 = *((uint32_t *) PAGE1)); 64 64 65 ASSERT(v0 == VALUE0); 66 ASSERT(v1 == VALUE1); 65 if (v0 != VALUE0) 66 return "Value at v0 not equal to VALUE0"; 67 if (v1 != VALUE1) 68 return "Value at v1 not equal to VALUE1"; 67 69 68 70 printf("Writing %#x to virtual address %p.\n", 0, PAGE0); … … 77 79 printf("Value at virtual address %p is %#x.\n", PAGE1, *((uint32_t *) PAGE1)); 78 80 79 ASSERT(v0 == 0); 80 ASSERT(v1 == 0); 81 if (v0 != 0) 82 return "Value at v0 not equal to 0"; 83 if (v1 != 0) 84 return "Value at v1 not equal to 0"; 81 85 82 86 return NULL; -
kernel/test/mm/slab1.c
r96348adc r7e13972 32 32 #include <proc/thread.h> 33 33 #include <arch.h> 34 #include <panic.h>35 34 #include <memstr.h> 36 35 -
kernel/test/mm/slab2.c
r96348adc r7e13972 32 32 #include <proc/thread.h> 33 33 #include <arch.h> 34 #include <panic.h>35 34 #include <mm/frame.h> 36 35 #include <memstr.h> … … 89 88 data1 = slab_alloc(cache1, FRAME_ATOMIC); 90 89 if (!data1) { 91 panic("Incorrect memory size - use another test."); 90 printf("Incorrect memory size - use another test."); 91 return; 92 92 } 93 93 memsetb((uintptr_t)data1, ITEM_SIZE, 0);
Note:
See TracChangeset
for help on using the changeset viewer.
