Changeset ada559c in mainline for kernel/generic


Ignore:
Timestamp:
2010-05-30T21:11:39Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a820bf7
Parents:
c8e99bb
Message:

Add page_table_locked() interface.

Location:
kernel/generic
Files:
3 edited

Legend:

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

    rc8e99bb rada559c  
    147147        void (* page_table_lock)(as_t *, bool);
    148148        void (* page_table_unlock)(as_t *, bool);
     149        bool (* page_table_locked)(as_t *);
    149150} as_operations_t;
    150151
  • kernel/generic/include/mm/page.h

    rc8e99bb rada559c  
    5252extern void page_table_lock(as_t *, bool);
    5353extern void page_table_unlock(as_t *, bool);
     54extern bool page_table_locked(as_t *);
    5455extern void page_mapping_insert(as_t *, uintptr_t, uintptr_t, unsigned int);
    5556extern void page_mapping_remove(as_t *, uintptr_t);
  • kernel/generic/src/mm/as.c

    rc8e99bb rada559c  
    12931293}
    12941294
     1295/** Test whether page tables are locked.
     1296 *
     1297 * @param as            Address space where the page tables belong.
     1298 *
     1299 * @return              True if the page tables belonging to the address soace
     1300 *                      are locked, otherwise false.
     1301 */
     1302bool page_table_locked(as_t *as)
     1303{
     1304        ASSERT(as_operations);
     1305        ASSERT(as_operations->page_table_locked);
     1306
     1307        return as_operations->page_table_locked(as);
     1308}
     1309
    12951310
    12961311/** Find address space area and lock it.
Note: See TracChangeset for help on using the changeset viewer.