📄 memory.h
字号:
/* * linux/include/asm-armnommu/arch-swarm/memory.h * * Copyright (c) 1999 Nicolas Pitre <nico@cam.org> * Copyright (c) 2001 RidgeRun <www.ridgerun.com> * * 02/19/2001 Gordon McNutt Leveraged for the dsc21. * 09 Sep 2001 C Hanish Menon [www.hanishkvc.com] * - Added for SWARM * - Also put back the macros which McNutt had moved to asm/memory.h * */#ifndef __ASM_ARCH_MEMORY_H#define __ASM_ARCH_MEMORY_H/* * These are used in the fault handling code (even for nommu) and various other * macros. The current value comes from Steve Johnson's 2.0.38 uClinux port for * the dsc21. * --gmcnutt */#define TASK_SIZE (0x01a00000UL)#define TASK_SIZE_26 TASK_SIZE/* * The start of physical memory. For the dsc21 this is the first SDRAM address. * This value is used in the arch-specific bootup code like setup_arch & * bootmem_init. By default we assume that we have one block of contiguous * memory (a node) that starts here and runs MEM_SIZE long (see below). By * default the ARM bootup code sets MEM_SIZE to be 16MB which is just right for * us (see arch/armnommu/kernel/setup.c). * * NOTE: I don't really use the start of SDRAM. Instead I reserve some pages * of SDRAM for some of the kernel sections (like .data & .bss). The * linker script has been modified to mark the first unreservered page * as _end_kernel (see arch/armnommu/vmlinux-armv.lds.in). * * --gmcnutt */extern unsigned long _end_kernel;#define PHYS_OFFSET ((unsigned long) &_end_kernel)/* * PAGE_OFFSET -- the first address of the first page of memory. For archs with * no MMU this corresponds to the first free page in physical memory (aligned * on a page boundary). * --gmcnutt */#define PAGE_OFFSET PHYS_OFFSET#define END_MEM (PHYS_OFFSET + (10*1024*1024))#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -