tlb.c (57c8a661d95dff48dd9c2f2496139082bbaf241a) | tlb.c (7e1c4e27928e5f87b9b1eaf06dc31773b2f1e7f1) |
---|---|
1/* 2 * TLB support routines. 3 * 4 * Copyright (C) 1998-2001, 2003 Hewlett-Packard Co 5 * David Mosberger-Tang <davidm@hpl.hp.com> 6 * 7 * 08/02/00 A. Mallick <asit.k.mallick@intel.com> 8 * Modified RID allocation for SMP --- 45 unchanged lines hidden (view full) --- 54/* 55 * Initializes the ia64_ctx.bitmap array based on max_ctx+1. 56 * Called after cpu_init() has setup ia64_ctx.max_ctx based on 57 * maximum RID that is supported by boot CPU. 58 */ 59void __init 60mmu_context_init (void) 61{ | 1/* 2 * TLB support routines. 3 * 4 * Copyright (C) 1998-2001, 2003 Hewlett-Packard Co 5 * David Mosberger-Tang <davidm@hpl.hp.com> 6 * 7 * 08/02/00 A. Mallick <asit.k.mallick@intel.com> 8 * Modified RID allocation for SMP --- 45 unchanged lines hidden (view full) --- 54/* 55 * Initializes the ia64_ctx.bitmap array based on max_ctx+1. 56 * Called after cpu_init() has setup ia64_ctx.max_ctx based on 57 * maximum RID that is supported by boot CPU. 58 */ 59void __init 60mmu_context_init (void) 61{ |
62 ia64_ctx.bitmap = memblock_alloc((ia64_ctx.max_ctx + 1) >> 3, 0); 63 ia64_ctx.flushmap = memblock_alloc((ia64_ctx.max_ctx + 1) >> 3, 0); | 62 ia64_ctx.bitmap = memblock_alloc((ia64_ctx.max_ctx + 1) >> 3, 63 SMP_CACHE_BYTES); 64 ia64_ctx.flushmap = memblock_alloc((ia64_ctx.max_ctx + 1) >> 3, 65 SMP_CACHE_BYTES); |
64} 65 66/* 67 * Acquire the ia64_ctx.lock before calling this function! 68 */ 69void 70wrap_mmu_context (struct mm_struct *mm) 71{ --- 491 unchanged lines hidden --- | 66} 67 68/* 69 * Acquire the ia64_ctx.lock before calling this function! 70 */ 71void 72wrap_mmu_context (struct mm_struct *mm) 73{ --- 491 unchanged lines hidden --- |