Ver Fonte

microblaze: Fix _start symbol to physical address

_start is setup to physical kernel start address.
This caused that when you load vmlinux (with MMU kernel)
via XMD program counter (pc) is setup correctly
and then you can write con and start kernel.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Michal Simek há 16 anos atrás
pai
commit
cfa9a775b9
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      arch/microblaze/kernel/vmlinux.lds.S

+ 1 - 0
arch/microblaze/kernel/vmlinux.lds.S

@@ -20,6 +20,7 @@ jiffies = jiffies_64 + 4;
 
 
 SECTIONS {
 SECTIONS {
 	. = CONFIG_KERNEL_START;
 	. = CONFIG_KERNEL_START;
+	_start = CONFIG_KERNEL_BASE_ADDR;
 	.text : AT(ADDR(.text) - LOAD_OFFSET) {
 	.text : AT(ADDR(.text) - LOAD_OFFSET) {
 		_text = . ;
 		_text = . ;
 		_stext = . ;
 		_stext = . ;