forked from Mirrors/opensbi
		
	platform: Apply relocatable address
Since jump and payload firmware support relocatable address, make general platform use runtime relocatable address. Signed-off-by: Inochi Amaoto <inochiama@outlook.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							f056939d8a
						
					
				
				
					commit
					2cff7f350f
				
			@@ -27,12 +27,12 @@ FW_DYNAMIC=y
 | 
			
		||||
FW_JUMP=y
 | 
			
		||||
ifeq ($(PLATFORM_RISCV_XLEN), 32)
 | 
			
		||||
  # This needs to be 4MB aligned for 32-bit system
 | 
			
		||||
  FW_JUMP_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x400000)))
 | 
			
		||||
  FW_JUMP_OFFSET=0x400000
 | 
			
		||||
else
 | 
			
		||||
  # This needs to be 2MB aligned for 64-bit system
 | 
			
		||||
  FW_JUMP_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x200000)))
 | 
			
		||||
  FW_JUMP_OFFSET=0x200000
 | 
			
		||||
endif
 | 
			
		||||
FW_JUMP_FDT_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x2200000)))
 | 
			
		||||
FW_JUMP_FDT_OFFSET=0x2200000
 | 
			
		||||
FW_PAYLOAD=y
 | 
			
		||||
ifeq ($(PLATFORM_RISCV_XLEN), 32)
 | 
			
		||||
  # This needs to be 4MB aligned for 32-bit system
 | 
			
		||||
@@ -41,4 +41,4 @@ else
 | 
			
		||||
  # This needs to be 2MB aligned for 64-bit system
 | 
			
		||||
  FW_PAYLOAD_OFFSET=0x200000
 | 
			
		||||
endif
 | 
			
		||||
FW_PAYLOAD_FDT_ADDR=$(FW_JUMP_FDT_ADDR)
 | 
			
		||||
FW_PAYLOAD_FDT_OFFSET=$(FW_JUMP_FDT_OFFSET)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user