Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    r5a5269d rb169619  
    6969#include <assert.h>
    7070#include <stdio.h>
    71 #include <mem.h>
     71#include <memw.h>
    7272#include <macros.h>
    7373#include <bitops.h>
     
    8686 * address space operations such as creating or locking page tables.
    8787 */
    88 as_operations_t *as_operations = NULL;
     88const as_operations_t *as_operations = NULL;
    8989
    9090/** Cache for as_t objects */
     
    16881688        spinlock_unlock(&asidlock);
    16891689
     1690        if (AS)
     1691                as_release(AS);
     1692
    16901693        AS = new_as;
     1694
     1695        as_hold(AS);
    16911696}
    16921697
     
    20572062        /* Check if A is adjacent to the new interval */
    20582063        adj_a = (a != NULL) && (a->page + P2SZ(a->count) == page);
    2059         /* Check if the new interval is adjacent to B*/
     2064        /* Check if the new interval is adjacent to B */
    20602065        adj_b = (b != NULL) && page + P2SZ(count) == b->page;
    20612066
Note: See TracChangeset for help on using the changeset viewer.