Subversion Repositories HelenOS

Rev

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

Rev 2089 Rev 2222
Line 74... Line 74...
74
 
74
 
75
    length = size + (s - (s & ~(PAGE_SIZE - 1)));
75
    length = size + (s - (s & ~(PAGE_SIZE - 1)));
76
    cnt = length / PAGE_SIZE + (length % PAGE_SIZE > 0);
76
    cnt = length / PAGE_SIZE + (length % PAGE_SIZE > 0);
77
 
77
 
78
    for (i = 0; i < cnt; i++)
78
    for (i = 0; i < cnt; i++)
79
        page_mapping_insert(AS_KERNEL, s + i * PAGE_SIZE, s + i * PAGE_SIZE, PAGE_NOT_CACHEABLE);
79
        page_mapping_insert(AS_KERNEL, s + i * PAGE_SIZE, s + i * PAGE_SIZE, PAGE_NOT_CACHEABLE | PAGE_WRITE);
80
 
80
 
81
}
81
}
82
 
82
 
83
/** Insert mapping of page to frame.
83
/** Insert mapping of page to frame.
84
 *
84
 *