aboutsummaryrefslogtreecommitdiff
path: root/kernel/trap.c
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-29 22:17:13 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-29 22:17:13 +0100
commitd51665904faa31c39106e4b2afa7541615072e72 (patch)
tree01c355472bcca04f59980d961dca0bc46c9b429b /kernel/trap.c
parent010888de490ab1fafc0200c37cd09d57a0ff1e9f (diff)
downloadfbos-d51665904faa31c39106e4b2afa7541615072e72.tar.gz
fbos-d51665904faa31c39106e4b2afa7541615072e72.zip
Allow the kernel to run as a Linux image
In order to run on real hardware, it's actually easier to re-use workflows from existing bootloaders than loading things in memory manually. In order to achieve this two things had to be settled: 1. The image has to have a Linux header as defined in the RISC-V port. This header will be taken into consideration by bootloaders in order to know where to jump, the image offset, the endianness of the image, etc. 2. The image cannot just be an ELF executable. Rather, we must translate it into binary form via `objcopy`. With all of this at hand, I was able to make the kernel run on a Starfive VisionFive 2 board, and I have recorded an example so it's available as documentation. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'kernel/trap.c')
0 files changed, 0 insertions, 0 deletions