FABRIC-3.10.8 MC-1c: riscv64's second hart online and parked; MC-1 complete
Harts from the DTB /cpus or, on QEMU (ACPI, no DTB), the MADT RINTC entries; the boot hart is the one SBI HSM reports STARTED. SBI HSM hart_start into ap_entry.S (stvec/satp copied, FPU on, tp set), park. Hart 1 online in S-mode with its own block; its vCPU thread 0.0% on the host. QEMU riscv64 -smp 2 -name debug-threads=on. All three ISAs now boot two cores; 3-ISA acceptance clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3a2ba5149f
commit
c081bcf87a
+5
-1
@@ -484,6 +484,7 @@ LOADER_ASM += $(KERNEL_SRC)/arch/$(ARCH)/ap_trampoline.S
|
||||
endif
|
||||
ifeq ($(ARCH),riscv64)
|
||||
LOADER_ASM += $(KERNEL_SRC)/arch/$(ARCH)/kernel_entry.S
|
||||
LOADER_ASM += $(KERNEL_SRC)/arch/$(ARCH)/ap_entry.S
|
||||
endif
|
||||
ifeq ($(ARCH),aarch64)
|
||||
LOADER_ASM += $(KERNEL_SRC)/arch/$(ARCH)/ap_entry.S
|
||||
@@ -503,7 +504,8 @@ LOADER_ARCH_SRCS += \
|
||||
endif
|
||||
ifeq ($(ARCH),riscv64)
|
||||
LOADER_ARCH_SRCS += \
|
||||
$(KERNEL_SRC)/arch/$(ARCH)/plic.c
|
||||
$(KERNEL_SRC)/arch/$(ARCH)/plic.c \
|
||||
$(KERNEL_SRC)/arch/$(ARCH)/smp.c
|
||||
endif
|
||||
ifeq ($(ARCH),aarch64)
|
||||
LOADER_ARCH_SRCS += \
|
||||
@@ -1050,6 +1052,8 @@ else ifeq ($(ARCH),riscv64)
|
||||
qemu-system-riscv64 \
|
||||
-machine virt \
|
||||
-cpu rv64 \
|
||||
-smp 2 \
|
||||
-name debug-threads=on \
|
||||
-m 1024 \
|
||||
-drive if=pflash,format=raw,unit=0,file=$$EDK2_RISCV_CODE,readonly=on \
|
||||
$$PFLASH_VARS_ARG \
|
||||
|
||||
Reference in New Issue
Block a user