Changeset 252127e in mainline for generic/include


Ignore:
Timestamp:
2006-04-03T22:15:56Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b26db0c
Parents:
b9b14a83
Message:

Deploy B+tree in address space area management.
Change as_remap() to check for conflicts with other address space areas only when the area in question grows.

Location:
generic/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • generic/include/adt/btree.h

    rb9b14a83 r252127e  
    8484extern void *btree_search(btree_t *t, __native key, btree_node_t **leaf_node);
    8585
     86extern btree_node_t *btree_node_left_sibling(btree_t *t, btree_node_t *node);
     87extern btree_node_t *btree_node_right_sibling(btree_t *t, btree_node_t *node);
     88
    8689extern void btree_print(btree_t *t);
    8790#endif
  • generic/include/mm/as.h

    rb9b14a83 r252127e  
    3737#include <synch/spinlock.h>
    3838#include <adt/list.h>
     39#include <adt/btree.h>
    3940
    4041/** Defined to be true if user address space and kernel address space shadow each other. */
     
    6465struct as_area {
    6566        SPINLOCK_DECLARE(lock);
    66         link_t link;
    6767        int flags;
    6868        count_t pages;          /**< Size of this area in multiples of PAGE_SIZE. */
     
    8686        count_t refcount;
    8787
    88         link_t as_area_head;
     88        /** B+-tree of address space areas. */
     89        btree_t as_area_btree;
    8990
    9091        /** Page table pointer. Constant on architectures that use global page hash table. */
Note: See TracChangeset for help on using the changeset viewer.