Changeset 086a600 in mainline for test/mm/slab1/test.c


Ignore:
Timestamp:
2006-02-02T23:54:42Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fb10289b
Parents:
4a5b2b0e
Message:

Debugged slab allocator. It currently supports per-CPU cache on 1 cpu.

File:
1 edited

Legend:

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

    r4a5b2b0e r086a600  
    3333#include <arch.h>
    3434#include <panic.h>
     35#include <memstr.h>
    3536
    3637#define VAL_COUNT   1024
     
    5152        for (i=0; i < count; i++) {
    5253                data[i] = slab_alloc(cache, 0);
     54                memsetb((__address)data[i], size, 0);
    5355        }
    5456        printf("done.\n");
     
    6264        for (i=0; i < count; i++) {
    6365                data[i] = slab_alloc(cache, 0);
     66                memsetb((__address)data[i], size, 0);
    6467        }
    6568        printf("done.\n");
     
    7578        for (i=count/2; i < count; i++) {
    7679                data[i] = slab_alloc(cache, 0);
     80                memsetb((__address)data[i], size, 0);
    7781        }
    7882        printf("done.\n");
Note: See TracChangeset for help on using the changeset viewer.