Get boot hartid from uboot
This commit is contained in:
parent
254651bcd0
commit
72e3175707
|
@ -20,9 +20,11 @@
|
|||
|
||||
|
||||
_boot_start:
|
||||
mv s0, a0
|
||||
call _debug_uart_init_early
|
||||
la a0, debug_string_start
|
||||
call _debug_uart_printascii
|
||||
mv a0, s0
|
||||
|
||||
j _start_kernel
|
||||
|
||||
|
@ -42,6 +44,9 @@ clear_bss:
|
|||
blt a3, a4, clear_bss
|
||||
clear_bss_done:
|
||||
|
||||
la a2, boot_cpu_hartid
|
||||
sd a0, (a2)
|
||||
|
||||
la sp, stacks_top
|
||||
|
||||
/* Initialize page tables and relocate to virtual addresses */
|
||||
|
|
|
@ -47,6 +47,8 @@ Modification:
|
|||
*************************************************/
|
||||
#include <stdint.h>
|
||||
|
||||
unsigned long boot_cpu_hartid;
|
||||
|
||||
#define PSCI_CPUON 0xc4000003
|
||||
struct xizi_smccc_res {
|
||||
unsigned long a0;
|
||||
|
|
Loading…
Reference in New Issue