Changeset 7e4e532 in mainline for generic/include/mm/as.h


Ignore:
Timestamp:
2006-02-08T23:37:38Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
874878a
Parents:
bb68433
Message:

Reimplement ASID stealing logic.
This time, hopefully, with correct synchronization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/mm/as.h

    rbb68433 r7e4e532  
    7777struct as {
    7878        /** Protected by asidlock. Must be acquired before as->lock. */
    79         link_t as_with_asid_link;
     79        link_t inactive_as_with_asid_link;
    8080
    8181        SPINLOCK_DECLARE(lock);
     82
     83        /** Number of processors on wich is this address space active. */
     84        count_t refcount;
     85
    8286        link_t as_area_head;
    8387
     
    97101extern as_operations_t *as_operations;
    98102
     103extern spinlock_t as_lock;
     104extern link_t inactive_as_with_asid_head;
     105
    99106extern void as_init(void);
    100107extern as_t *as_create(int flags);
     
    102109extern void as_set_mapping(as_t *as, __address page, __address frame);
    103110extern int as_page_fault(__address page);
    104 extern void as_install(as_t *m);
     111extern void as_switch(as_t *old, as_t *new);
    105112
    106113/* Interface to be implemented by architectures. */
Note: See TracChangeset for help on using the changeset viewer.