Changeset d0485c6 in mainline
- Timestamp:
- 2006-12-01T22:10:40Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3d76996
- Parents:
- 7bf7ef7
- Location:
- kernel
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/mm/page.h
r7bf7ef7 rd0485c6 52 52 #define PAGE_WIDTH FRAME_WIDTH 53 53 #define PAGE_SIZE FRAME_SIZE 54 55 #define PAGE_COLOR_BITS 0 /* dummy */ 54 56 55 57 #ifdef KERNEL -
kernel/arch/ia32/include/mm/page.h
r7bf7ef7 rd0485c6 40 40 #define PAGE_WIDTH FRAME_WIDTH 41 41 #define PAGE_SIZE FRAME_SIZE 42 43 #define PAGE_COLOR_BITS 0 /* dummy */ 42 44 43 45 #ifdef KERNEL -
kernel/arch/ia32xen/include/mm/page.h
r7bf7ef7 rd0485c6 41 41 #define PAGE_SIZE FRAME_SIZE 42 42 43 #define PAGE_COLOR_BITS 0 /* dummy */ 44 43 45 #ifdef KERNEL 44 46 -
kernel/arch/ia64/include/mm/page.h
r7bf7ef7 rd0485c6 42 42 #define PAGE_WIDTH FRAME_WIDTH 43 43 44 #define PAGE_COLOR_BITS 0 /* dummy */ 44 45 45 46 #ifdef KERNEL 46 47 47 48 /** Bit width of the TLB-locked portion of kernel address space. */ 48 #define KERNEL_PAGE_WIDTH 28 /* 256M */49 #define KERNEL_PAGE_WIDTH 28 /* 256M */ 49 50 50 51 #define PPN_SHIFT 12 … … 65 66 #define PA2KA(x) ((uintptr_t) (x+(VRN_KERNEL<<VRN_SHIFT))) 66 67 67 #define VHPT_WIDTH 20 68 #define VHPT_WIDTH 20 /* 1M */ 68 69 #define VHPT_SIZE (1 << VHPT_WIDTH) 69 70 -
kernel/arch/mips32/include/mm/page.h
r7bf7ef7 rd0485c6 40 40 #define PAGE_WIDTH FRAME_WIDTH 41 41 #define PAGE_SIZE FRAME_SIZE 42 43 #define PAGE_COLOR_BITS 0 /* dummy */ 42 44 43 45 #ifndef __ASM__ -
kernel/arch/ppc32/include/mm/page.h
r7bf7ef7 rd0485c6 40 40 #define PAGE_WIDTH FRAME_WIDTH 41 41 #define PAGE_SIZE FRAME_SIZE 42 43 #define PAGE_COLOR_BITS 0 /* dummy */ 42 44 43 45 #ifdef KERNEL -
kernel/arch/ppc64/include/mm/page.h
r7bf7ef7 rd0485c6 40 40 #define PAGE_WIDTH FRAME_WIDTH 41 41 #define PAGE_SIZE FRAME_SIZE 42 43 #define PAGE_COLOR_BITS 0 /* dummy */ 42 44 43 45 #ifdef KERNEL -
kernel/arch/sparc64/include/mm/page.h
r7bf7ef7 rd0485c6 41 41 #define PAGE_SIZE FRAME_SIZE 42 42 43 #define PAGE_COLOR_BITS 1 /**< 14 - 13; 2^14 == 16K == alias boundary. */ 44 43 45 #ifdef KERNEL 44 46 -
kernel/genarch/src/mm/asid_fifo.c
r7bf7ef7 rd0485c6 64 64 int i; 65 65 66 66 #if (!FIFO_STATIC) 67 67 fifo_create(free_asids); 68 68 #endif 69 69 70 70 for (i = 0; i < ASIDS_ALLOCABLE; i++) { -
kernel/generic/include/mm/page.h
r7bf7ef7 rd0485c6 67 67 #define PAGE_GLOBAL (1<<PAGE_GLOBAL_SHIFT) 68 68 69 70 /** 71 * Macro for computing page color. 72 */ 73 #define PAGE_COLOR(va) (((va) >> PAGE_WIDTH) & ((1 << PAGE_COLOR_BITS) - 1)) 74 69 75 /** Page fault access type. */ 70 76 enum pf_access { -
kernel/generic/src/mm/as.c
r7bf7ef7 rd0485c6 551 551 * @param dst_flags_mask Destination address space area flags mask. 552 552 * 553 * @return Zero on success or ENOENT if there is no such task or 554 * if there is no such address space area, 555 * EPERM if there was a problem in accepting the area or 556 * ENOMEM if there was a problem in allocating destination 557 * address space area. ENOTSUP is returned if an attempt 558 * to share non-anonymous address space area is detected. 553 * @return Zero on success or ENOENT if there is no such task or if there is no 554 * such address space area, EPERM if there was a problem in accepting the area 555 * or ENOMEM if there was a problem in allocating destination address space 556 * area. ENOTSUP is returned if the address space area backend does not support 557 * sharing. It can be also returned if the architecture uses virtually indexed 558 * caches and the source and destination areas start at pages with different 559 * page colors. 559 560 */ 560 561 int as_area_share(as_t *src_as, uintptr_t src_base, size_t acc_size, … … 581 582 } 582 583 584 #if 0 /* disable the check for now */ 585 #ifdef CONFIG_VIRT_IDX_CACHE 586 if (PAGE_COLOR(src_area->base) != PAGE_COLOR(dst_base)) { 587 /* 588 * Refuse to create illegal address alias. 589 */ 590 mutex_unlock(&src_area->lock); 591 mutex_unlock(&src_as->lock); 592 interrupts_restore(ipl); 593 return ENOTSUP; 594 } 595 #endif /* CONFIG_VIRT_IDX_CACHE */ 596 #endif 597 583 598 if (!src_area->backend || !src_area->backend->share) { 584 599 /*
Note:
See TracChangeset
for help on using the changeset viewer.