~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/frv/include/asm/mem-layout.h

Version: ~ [ linux-6.0-rc1 ] ~ [ linux-5.19.1 ] ~ [ linux-5.18.17 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.60 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.136 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.210 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.255 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.290 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.325 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.302 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* mem-layout.h: memory layout
  2  *
  3  * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
  4  * Written by David Howells (dhowells@redhat.com)
  5  *
  6  * This program is free software; you can redistribute it and/or
  7  * modify it under the terms of the GNU General Public License
  8  * as published by the Free Software Foundation; either version
  9  * 2 of the License, or (at your option) any later version.
 10  */
 11 
 12 #ifndef _ASM_MEM_LAYOUT_H
 13 #define _ASM_MEM_LAYOUT_H
 14 
 15 #ifndef __ASSEMBLY__
 16 #define __UL(X) ((unsigned long) (X))
 17 #else
 18 #define __UL(X) (X)
 19 #endif
 20 
 21 /*
 22  * PAGE_SHIFT determines the page size
 23  */
 24 #define PAGE_SHIFT                      14
 25 
 26 #ifndef __ASSEMBLY__
 27 #define PAGE_SIZE                       (1UL << PAGE_SHIFT)
 28 #else
 29 #define PAGE_SIZE                       (1 << PAGE_SHIFT)
 30 #endif
 31 
 32 #define PAGE_MASK                       (~(PAGE_SIZE-1))
 33 
 34 /*
 35  * the slab must be aligned such that load- and store-double instructions don't
 36  * fault if used
 37  */
 38 #define ARCH_DMA_MINALIGN               L1_CACHE_BYTES
 39 #define ARCH_SLAB_MINALIGN              L1_CACHE_BYTES
 40 
 41 /*****************************************************************************/
 42 /*
 43  * virtual memory layout from kernel's point of view
 44  */
 45 #define PAGE_OFFSET                     ((unsigned long) &__page_offset)
 46 
 47 #ifdef CONFIG_MMU
 48 
 49 /* see Documentation/frv/mmu-layout.txt */
 50 #define KERNEL_LOWMEM_START             __UL(0xc0000000)
 51 #define KERNEL_LOWMEM_END               __UL(0xd0000000)
 52 #define VMALLOC_START                   __UL(0xd0000000)
 53 #define VMALLOC_END                     __UL(0xd8000000)
 54 #define PKMAP_BASE                      __UL(0xd8000000)
 55 #define PKMAP_END                       __UL(0xdc000000)
 56 #define KMAP_ATOMIC_SECONDARY_FRAME     __UL(0xdc000000)
 57 #define KMAP_ATOMIC_PRIMARY_FRAME       __UL(0xdd000000)
 58 
 59 #endif
 60 
 61 #define KERNEL_IO_START                 __UL(0xe0000000)
 62 
 63 
 64 /*****************************************************************************/
 65 /*
 66  * memory layout from userspace's point of view
 67  */
 68 #define BRK_BASE                        __UL(2 * 1024 * 1024 + PAGE_SIZE)
 69 #define STACK_TOP                       __UL(2 * 1024 * 1024)
 70 #define STACK_TOP_MAX                   __UL(0xc0000000)
 71 
 72 /* userspace process size */
 73 #ifdef CONFIG_MMU
 74 #define TASK_SIZE                       (PAGE_OFFSET)
 75 #else
 76 #define TASK_SIZE                       __UL(0xFFFFFFFFUL)
 77 #endif
 78 
 79 /* base of area at which unspecified mmaps will start */
 80 #ifdef CONFIG_BINFMT_ELF_FDPIC
 81 #define TASK_UNMAPPED_BASE              __UL(16 * 1024 * 1024)
 82 #else
 83 #define TASK_UNMAPPED_BASE              __UL(TASK_SIZE / 3)
 84 #endif
 85 
 86 #endif /* _ASM_MEM_LAYOUT_H */
 87 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp