Changeset 1068f6a in mainline for generic/include/mm/as.h


Ignore:
Timestamp:
2006-05-20T19:32:06Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1982e45
Parents:
9ea6cc5
Message:

Turn address space lock, address space area lock and
page_ht_lock into mutexes.

File:
1 edited

Legend:

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

    r9ea6cc5 r1068f6a  
    4545#include <typedefs.h>
    4646#include <synch/spinlock.h>
     47#include <synch/mutex.h>
    4748#include <adt/list.h>
    4849#include <adt/btree.h>
     
    6768#define AS_AREA_ATTR_PARTIAL    1       /* Not fully initialized area. */
    6869
    69 #define AS_PF_FAULT             0       /**< The page fault was not resolved by asp_page_fault(). */
     70#define AS_PF_FAULT             0       /**< The page fault was not resolved by as_page_fault(). */
    7071#define AS_PF_OK                1       /**< The page fault was resolved by as_page_fault(). */
    71 #define AS_PF_DEFER             2       /**< The page fault was caused by memcpy_from_uspace(). */
     72#define AS_PF_DEFER             2       /**< The page fault was caused by memcpy_from_uspace()
     73                                             or memcpy_to_uspace(). */
    7274
    7375/** Address space area structure.
     
    7779 */
    7880struct as_area {
    79         SPINLOCK_DECLARE(lock);
     81        mutex_t lock;
    8082        int flags;              /**< Flags related to the memory represented by the address space area. */
    8183        int attributes;         /**< Attributes related to the address space area itself. */
     
    9294 */
    9395struct as {
    94         /** Protected by asidlock. Must be acquired before as->lock. */
     96        /** Protected by asidlock. */
    9597        link_t inactive_as_with_asid_link;
    9698
    97         SPINLOCK_DECLARE(lock);
     99        mutex_t lock;
    98100
    99101        /** Number of processors on wich is this address space active. */
Note: See TracChangeset for help on using the changeset viewer.