Subversion Repositories HelenOS

Rev

Rev 2107 | Rev 3908 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2107 Rev 2116
Line 126... Line 126...
126
     * attempts to create an illegal address alias.
126
     * attempts to create an illegal address alias.
127
     */
127
     */
128
    spinlock_lock(&parea_lock);
128
    spinlock_lock(&parea_lock);
129
    parea_t *parea;
129
    parea_t *parea;
130
    btree_node_t *nodep;
130
    btree_node_t *nodep;
131
    parea = btree_search(&parea_btree, (btree_key_t) pf, &nodep);
131
    parea = (parea_t *) btree_search(&parea_btree, (btree_key_t) pf, &nodep);
132
    if (!parea || parea->frames < pages || ((flags & AS_AREA_CACHEABLE) &&
132
    if (!parea || parea->frames < pages || ((flags & AS_AREA_CACHEABLE) &&
133
        !parea->cacheable) || (!(flags & AS_AREA_CACHEABLE) &&
133
        !parea->cacheable) || (!(flags & AS_AREA_CACHEABLE) &&
134
        parea->cacheable)) {
134
        parea->cacheable)) {
135
        /*
135
        /*
136
         * This physical memory area cannot be mapped.
136
         * This physical memory area cannot be mapped.