*参照元 [#ue66cf33]
#backlinks

*説明 [#p2143f3d]
-パス: 複数あり
--MMU 無効の場合(汎用): [[linux-2.6.33/arch/arm/include/asm/memory.h]]

-Linux が使用するメモリ先頭の物理アドレス
-FIXME: Linux が使用するメモリ先頭の物理アドレス(たぶん)


**参考 [#u747f7cf]
-アーキテクチャごとの定義位置を検索した結果
 $ egrep -r 'define[\t ]*PHYS_OFFSET' arch/arm | sort
 
 arch/arm/include/asm/memory.h:#define PHYS_OFFSET 		(CONFIG_DRAM_BASE)
 arch/arm/mach-aaec2000/include/mach/memory.h:#define PHYS_OFFSET	UL(0xf0000000)
 arch/arm/mach-at91/include/mach/memory.h:#define PHYS_OFFSET	(AT91_SDRAM_BASE)
 arch/arm/mach-bcmring/include/mach/memory.h:#define PHYS_OFFSET CFG_GLOBAL_RAM_BASE
 arch/arm/mach-clps711x/include/mach/memory.h:#define PHYS_OFFSET	UL(0xc0000000)
 arch/arm/mach-davinci/include/mach/memory.h:#define PHYS_OFFSET DA8XX_DDR_BASE
 arch/arm/mach-davinci/include/mach/memory.h:#define PHYS_OFFSET DAVINCI_DDR_BASE
 arch/arm/mach-dove/include/mach/memory.h:#define PHYS_OFFSET		UL(0x00000000)
 arch/arm/mach-ebsa110/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-ep93xx/include/mach/memory.h:#define PHYS_OFFSET		UL(0x00000000)
 arch/arm/mach-ep93xx/include/mach/memory.h:#define PHYS_OFFSET		UL(0xc0000000)
 arch/arm/mach-ep93xx/include/mach/memory.h:#define PHYS_OFFSET		UL(0xd0000000)
 arch/arm/mach-ep93xx/include/mach/memory.h:#define PHYS_OFFSET		UL(0xe0000000)
 arch/arm/mach-ep93xx/include/mach/memory.h:#define PHYS_OFFSET		UL(0xf0000000)
 arch/arm/mach-footbridge/include/mach/memory.h:#define PHYS_OFFSET		UL(0x00000000)
 arch/arm/mach-gemini/include/mach/memory.h:# define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-gemini/include/mach/memory.h:# define PHYS_OFFSET	UL(0x10000000)
 arch/arm/mach-h720x/include/mach/memory.h:#define PHYS_OFFSET	UL(0x40000000)
 arch/arm/mach-integrator/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-iop13xx/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-iop32x/include/mach/memory.h:#define PHYS_OFFSET	UL(0xa0000000)
 arch/arm/mach-iop33x/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-ixp2000/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-ixp23xx/include/mach/memory.h:#define PHYS_OFFSET		(0x00000000)
 arch/arm/mach-ixp4xx/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-kirkwood/include/mach/memory.h:#define PHYS_OFFSET		UL(0x00000000)
 arch/arm/mach-ks8695/include/mach/memory.h:#define PHYS_OFFSET		KS8695_SDRAM_PA
 arch/arm/mach-l7200/include/mach/memory.h:#define PHYS_OFFSET     UL(0xf0000000)
 arch/arm/mach-lh7a40x/include/mach/memory.h:#define PHYS_OFFSET	UL(0xc0000000)
 arch/arm/mach-loki/include/mach/memory.h:#define PHYS_OFFSET		UL(0x00000000)
 arch/arm/mach-mmp/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-msm/include/mach/memory.h:#define PHYS_OFFSET		UL(0x10000000)
 arch/arm/mach-mv78xx0/include/mach/memory.h:#define PHYS_OFFSET		UL(0x00000000)
 arch/arm/mach-netx/include/mach/memory.h:#define PHYS_OFFSET UL(0x80000000)
 arch/arm/mach-nomadik/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-ns9xxx/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-orion5x/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-pnx4008/include/mach/memory.h:#define PHYS_OFFSET	UL(0x80000000)
 arch/arm/mach-pxa/include/mach/memory.h:#define PHYS_OFFSET	UL(0xa0000000)
 arch/arm/mach-realview/include/mach/memory.h:#define PHYS_OFFSET		UL(0x00000000)
 arch/arm/mach-realview/include/mach/memory.h:#define PHYS_OFFSET		UL(0x70000000)
 arch/arm/mach-rpc/include/mach/memory.h:#define PHYS_OFFSET	UL(0x10000000)
 arch/arm/mach-s3c2400/include/mach/memory.h:#define PHYS_OFFSET	UL(0x0C000000)
 arch/arm/mach-s3c2410/include/mach/memory.h:#define PHYS_OFFSET	UL(0x30000000)
 arch/arm/mach-s3c24a0/include/mach/memory.h:#define PHYS_OFFSET UL(0x10000000)
 arch/arm/mach-s3c6400/include/mach/memory.h:#define PHYS_OFFSET     UL(0x50000000)
 arch/arm/mach-s5pc100/include/mach/memory.h:#define PHYS_OFFSET     	UL(0x20000000)
 arch/arm/mach-sa1100/include/mach/memory.h:#define PHYS_OFFSET	UL(0xc0000000)
 arch/arm/mach-shark/include/mach/memory.h:#define PHYS_OFFSET     UL(0x08000000)
 arch/arm/mach-u300/include/mach/memory.h:#define PHYS_OFFSET		UL(0x48000000)
 arch/arm/mach-u300/include/mach/memory.h:#define PHYS_OFFSET (0x28000000 + \
 arch/arm/mach-u300/include/mach/memory.h:#define PHYS_OFFSET (0x28000000 + \
 arch/arm/mach-ux500/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-versatile/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/mach-w90x900/include/mach/memory.h:#define PHYS_OFFSET	UL(0x00000000)
 arch/arm/plat-mxc/include/mach/memory.h:#define PHYS_OFFSET		UL(0x08000000)
 arch/arm/plat-mxc/include/mach/memory.h:#define PHYS_OFFSET		UL(0x80000000)
 arch/arm/plat-mxc/include/mach/memory.h:#define PHYS_OFFSET		UL(0x80000000)
 arch/arm/plat-mxc/include/mach/memory.h:#define PHYS_OFFSET		UL(0x90000000)
 arch/arm/plat-mxc/include/mach/memory.h:#define PHYS_OFFSET		UL(0xA0000000)
 arch/arm/plat-mxc/include/mach/memory.h:#define PHYS_OFFSET		UL(0xC0000000)
 arch/arm/plat-omap/include/plat/memory.h:#define PHYS_OFFSET		UL(0x10000000)
 arch/arm/plat-omap/include/plat/memory.h:#define PHYS_OFFSET		UL(0x80000000)
 arch/arm/plat-stmp3xxx/include/mach/memory.h:#define PHYS_OFFSET	UL(0x40000000)


*実装 [#w9751118]
 #else /* CONFIG_MMU */
-MMU 無効の場合
--[[linux-2.6.33/CONFIG_MMU]]

 /*
  * The limitation of user task size can grow up to the end of free ram region.
  * It is difficult to define and perhaps will never meet the original meaning
  * of this define that was meant to.
  * Fortunately, there is no reference for this in noMMU mode, for now.
  */
 (略)
 #ifndef PHYS_OFFSET
 #define PHYS_OFFSET 		(CONFIG_DRAM_BASE)
 #endif
-
--[[linux-2.6.33/CONFIG_DRAM_BASE]]


*コメント [#v01be139]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS