Changeset 8b863a62 in mainline for kernel/arch/sparc64/src/mm/sun4v/as.c
- Timestamp:
- 2014-04-16T17:14:06Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f857e8b
- Parents:
- dba3e2c (diff), 70b570c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/sun4v/as.c
rdba3e2c r8b863a62 66 66 { 67 67 #ifdef CONFIG_TSB 68 uint8_t order = fnzb32( 69 (TSB_ENTRY_COUNT * sizeof(tsb_entry_t)) >> FRAME_WIDTH); 70 71 uintptr_t tsb = (uintptr_t) frame_alloc(order, flags); 72 68 uintptr_t tsb = 69 frame_alloc(SIZE2FRAMES(TSB_ENTRY_COUNT * sizeof(tsb_entry_t)), 70 flags, 0); 73 71 if (!tsb) 74 72 return -1; … … 92 90 { 93 91 #ifdef CONFIG_TSB 94 size_t cnt = (TSB_ENTRY_COUNT * sizeof(tsb_entry_t)) >> FRAME_WIDTH;95 frame_free( (uintptr_t) as->arch.tsb_description.tsb_base);92 size_t frames = SIZE2FRAMES(TSB_ENTRY_COUNT * sizeof(tsb_entry_t)); 93 frame_free(as->arch.tsb_description.tsb_base, frames); 96 94 97 return cnt;95 return frames; 98 96 #else 99 97 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.