aboutsummaryrefslogtreecommitdiff
path: root/dummy_payload/dummy_payload.c
blob: 61ed59a921e2f8c45e2ba52f87e73eed94534a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdint.h>
#include "sbi.h"

asm (".globl _start\n\
  _start: la sp, stack\n\
  j entry\n\
  .pushsection .rodata\n\
  .align 4\n\
  .skip 4096\n\
  stack:\n\
  .popsection");

void entry()
{
  const char* message =
"This is bbl's dummy_payload.  To boot a real kernel, reconfigure\n\
bbl with the flag --with-payload=PATH, then rebuild bbl.\n";
  while (*message)
    sbi_console_putchar(*message++);
  sbi_shutdown();
}