Skip to content
This repository was archived by the owner on Apr 13, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ config PAGE_OFFSET
default 0xffffffff80000000 if 64BIT && MAXPHYSMEM_2GB
default 0xffffffe000000000 if 64BIT && MAXPHYSMEM_128GB

config LMA_OFFSET
prompt "Load Memory address offset"
hex
default 0x00000000
help
This selects the load memory address in the vmlinux kernel, which
is needed if you want to do JTAG debugging on the kernel in gdb,
with VM initially off. Default is 0 for compatibility but a more
realistic value would be 0x80000000 for Rocket as an example.

config STACKTRACE_SUPPORT
def_bool y

Expand Down
4 changes: 2 additions & 2 deletions arch/riscv/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* GNU General Public License for more details.
*/

#define LOAD_OFFSET PAGE_OFFSET
#define LOAD_OFFSET (PAGE_OFFSET-CONFIG_LMA_OFFSET)
#include <asm/vmlinux.lds.h>
#include <asm/page.h>
#include <asm/cache.h>
Expand All @@ -26,7 +26,7 @@ jiffies = jiffies_64;
SECTIONS
{
/* Beginning of code and text segment */
. = LOAD_OFFSET;
. = PAGE_OFFSET;
_start = .;
__init_begin = .;
HEAD_TEXT_SECTION
Expand Down