Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elfloader/riscv: always pass hart/core information #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 2 additions & 6 deletions elfloader-tool/include/arch-riscv/elfloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ typedef void (*init_riscv_kernel_t)(word_t ui_p_reg_start,
word_t pv_offset,
word_t v_entry,
word_t dtb_addr_p,
word_t dtb_size
#if CONFIG_MAX_NUM_NODES > 1
,
word_t dtb_size,
word_t hart_id,
word_t core_id
#endif
);
word_t core_id);
8 changes: 2 additions & 6 deletions elfloader-tool/src/arch-riscv/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,9 @@ static int run_elfloader(UNUSED int hart_id, void *bootloader_dtb)
user_info.phys_virt_offset,
user_info.virt_entry,
(word_t)dtb,
dtb_size
#if CONFIG_MAX_NUM_NODES > 1
,
dtb_size,
hart_id,
0
#endif
);
0);

/* We should never get here. */
printf("ERROR: Kernel returned back to the ELF Loader\n");
Expand Down