1// See LICENSE for license details. 2 3#include "mcall.h" 4 5 .section ".text.init" 6 .globl _start 7_start: 8 la s0, str 91: 10 lbu a0, (s0) 11 beqz a0, 1f 12 li a7, SBI_CONSOLE_PUTCHAR 13 ecall 14 add s0, s0, 1 15 j 1b 16 171: 18 li a7, SBI_SHUTDOWN 19 ecall 20 21 .data 22str: 23 .asciz "This is bbl's dummy_payload. To boot a real kernel, reconfigure bbl 24with the flag --with-payload=PATH, then rebuild bbl. Alternatively, 25bbl can be used in firmware-only mode by adding device-tree nodes 26for an external payload and use QEMU's -bios and -kernel options.\n 27 chosen { 28 riscv,kernel-start = <payload_start>; 29 riscv,kernel-end = <payload_end>; 30 };\n\n" 31