Changeset 018d957e in mainline


Ignore:
Timestamp:
2006-03-20T20:37:17Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
741ade3f
Parents:
53f9821
Message:

B+-tree implementation.
Currently supports only inserting and searching.

Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r53f9821 r018d957e  
    101101
    102102GENERIC_SOURCES = \
     103        generic/src/adt/btree.c \
    103104        generic/src/adt/hash_table.c \
    104105        generic/src/adt/list.c \
  • generic/include/typedefs.h

    r53f9821 r018d957e  
    9090typedef struct hash_table_operations hash_table_operations_t;
    9191
     92typedef struct btree_node btree_node_t;
     93typedef struct btree btree_t;
     94
    9295#endif
  • generic/src/main/main.c

    r53f9821 r018d957e  
    163163         */     
    164164        arch_pre_mm_init();
    165         /* Initialize at least 1 memory segment big enough for slab to work */
    166         frame_init();
     165        frame_init();           /* Initialize at least 1 memory segment big enough for slab to work */
    167166        slab_cache_init();
    168167        as_init();
     
    170169        tlb_init();
    171170        arch_post_mm_init();   
     171
    172172        version_print();
    173 
    174173        printf("%P: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n",
    175174                config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024);
     
    177176        arch_pre_smp_init();
    178177        smp_init();
    179         /* Slab must be initialized AFTER we know the number of processors */
    180         slab_enable_cpucache();
     178       
     179        slab_enable_cpucache(); /* Slab must be initialized AFTER we know the number of processors */
    181180
    182181        printf("config.memory_size=%dM\n", config.memory_size/(1024*1024));
  • kernel.config

    r53f9821 r018d957e  
    8282@ "" No test
    8383@ "atomic/atomic1" Test of atomic operations.
     84@ "btree/btree1" B-tree test.
    8485@ "synch/rwlock1" Read write test 1
    8586@ "synch/rwlock2" Read write test 2
Note: See TracChangeset for help on using the changeset viewer.