Changeset bd1deed in mainline for kernel/genarch/src


Ignore:
Timestamp:
2007-02-11T20:04:08Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c993e45
Parents:
ce8aed1
Message:

experimental support for Objective C
(disabled by default)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/mm/as_pt.c

    rce8aed1 rbd1deed  
    5353static void pt_unlock(as_t *as, bool unlock);
    5454
     55#ifdef __OBJC__
     56@implementation as_t
     57
     58+ (pte_t *) page_table_create: (int) flags
     59{
     60        return ptl0_create(flags);
     61}
     62
     63+ (void) page_table_destroy: (pte_t *) page_table
     64{
     65        ptl0_destroy(page_table);
     66}
     67
     68- (void) page_table_lock: (bool) _lock
     69{
     70        pt_lock(self, _lock);
     71}
     72
     73- (void) page_table_unlock: (bool) unlock
     74{
     75        pt_unlock(self, unlock);
     76}
     77
     78@end
     79#else
    5580as_operations_t as_pt_operations = {
    5681        .page_table_create = ptl0_create,
     
    5984        .page_table_unlock = pt_unlock
    6085};
     86#endif
    6187
    6288/** Create PTL0.
Note: See TracChangeset for help on using the changeset viewer.