Rev 1666 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1666 | Rev 1780 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | slab_free(cache1,data1); |
65 | slab_free(cache1,data1); |
66 | if (data2) |
66 | if (data2) |
67 | slab_free(cache2,data2); |
67 | slab_free(cache2,data2); |
68 | break; |
68 | break; |
69 | } |
69 | } |
70 | memsetb((__address)data1, ITEM_SIZE, 0); |
70 | memsetb((uintptr_t)data1, ITEM_SIZE, 0); |
71 | memsetb((__address)data2, ITEM_SIZE, 0); |
71 | memsetb((uintptr_t)data2, ITEM_SIZE, 0); |
72 | *((void **)data1) = olddata1; |
72 | *((void **)data1) = olddata1; |
73 | *((void **)data2) = olddata2; |
73 | *((void **)data2) = olddata2; |
74 | olddata1 = data1; |
74 | olddata1 = data1; |
75 | olddata2 = data2; |
75 | olddata2 = data2; |
76 | }while(1); |
76 | }while(1); |
Line 88... | Line 88... | ||
88 | for (i=0; i<30; i++) { |
88 | for (i=0; i<30; i++) { |
89 | data1 = slab_alloc(cache1, FRAME_ATOMIC); |
89 | data1 = slab_alloc(cache1, FRAME_ATOMIC); |
90 | if (!data1) { |
90 | if (!data1) { |
91 | panic("Incorrect memory size - use another test."); |
91 | panic("Incorrect memory size - use another test."); |
92 | } |
92 | } |
93 | memsetb((__address)data1, ITEM_SIZE, 0); |
93 | memsetb((uintptr_t)data1, ITEM_SIZE, 0); |
94 | *((void **)data1) = olddata1; |
94 | *((void **)data1) = olddata1; |
95 | olddata1 = data1; |
95 | olddata1 = data1; |
96 | } |
96 | } |
97 | while (1) { |
97 | while (1) { |
98 | data1 = slab_alloc(cache1, FRAME_ATOMIC); |
98 | data1 = slab_alloc(cache1, FRAME_ATOMIC); |
99 | if (!data1) { |
99 | if (!data1) { |
100 | break; |
100 | break; |
101 | } |
101 | } |
102 | memsetb((__address)data1, ITEM_SIZE, 0); |
102 | memsetb((uintptr_t)data1, ITEM_SIZE, 0); |
103 | *((void **)data1) = olddata1; |
103 | *((void **)data1) = olddata1; |
104 | olddata1 = data1; |
104 | olddata1 = data1; |
105 | } |
105 | } |
106 | printf("Deallocating cache1..."); |
106 | printf("Deallocating cache1..."); |
107 | while (olddata1) { |
107 | while (olddata1) { |