Changeset efb48eb in mainline
- Timestamp:
- 2011-12-30T23:56:54Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 22f0561
- Parents:
- 41deb2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/page.c
r41deb2a refb48eb 76 76 #include <errno.h> 77 77 #include <align.h> 78 #include <macros.h> 79 #include <bitops.h> 78 80 79 81 /** Virtual operations for page subsystem. */ … … 195 197 uintptr_t virtaddr; 196 198 size_t asize; 199 size_t align; 197 200 pfn_t i; 198 201 199 202 asize = ALIGN_UP(size, PAGE_SIZE); 200 virtaddr = km_page_alloc(asize, PAGE_SIZE); 203 align = ispwr2(size) ? size : (1U << (fnzb(size) + 1)); 204 virtaddr = km_page_alloc(asize, align); 201 205 202 206 page_table_lock(AS_KERNEL, true);
Note:
See TracChangeset
for help on using the changeset viewer.