projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
riscv: Move kernel mapping outside of linear mapping
[linux-2.6-microblaze.git]
/
arch
/
riscv
/
kernel
/
head.S
diff --git
a/arch/riscv/kernel/head.S
b/arch/riscv/kernel/head.S
index
f5a9bad
..
6cb05f2
100644
(file)
--- a/
arch/riscv/kernel/head.S
+++ b/
arch/riscv/kernel/head.S
@@
-69,7
+69,8
@@
pe_head_start:
#ifdef CONFIG_MMU
relocate:
/* Relocate return address */
- li a1, PAGE_OFFSET
+ la a1, kernel_virt_addr
+ REG_L a1, 0(a1)
la a2, _start
sub a1, a1, a2
add ra, ra, a1