Changeset 5d2ab23 in mainline for test/mm/falloc1/test.c
- Timestamp:
- 2006-01-17T20:52:33Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 64c44e8
- Parents:
- 77147d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mm/falloc1/test.c
r77147d6 r5d2ab23 34 34 #include <debug.h> 35 35 36 #define MAX_FRAMES 102436 #define MAX_FRAMES 2048 37 37 #define MAX_ORDER 8 38 38 #define TEST_RUNS 4 … … 53 53 allocated = 0; 54 54 for (i=0;i<MAX_FRAMES>>order;i++) { 55 frames[allocated] = frame_alloc(FRAME_NON_BLOCKING,order, &status); 55 frames[allocated] = frame_alloc(FRAME_NON_BLOCKING, order, &status); 56 57 if (frames[allocated] % (FRAME_SIZE << order) != 0) { 58 panic("Test failed. Block at address %X (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10); 59 } 60 56 61 if (status == 0) { 57 62 allocated++;
Note:
See TracChangeset
for help on using the changeset viewer.