~/talk

Building a real time OS in C++, from scratch

Talkat Core C++ 2026 · 2026-10-20..10-21· [embedded-and-hardware]
links:none on file
slides:none on file

A small real-time OS named Soros runs on a RISC‑V core beside a 6502 on an FPGA, boots to running threads in ~50 ms (under 10 ms after FPGA config) and drives USB/SD via a separate 32‑bit CPU to host Apple II disk images. The code implements preemptive context switches by saving full register state for IRQs and only callee‑saved registers for cooperative switches, uses a CSR read template for compile‑time CSR access, a fixed_string literal for thread names, and prints full register dumps on traps.

AI-written summary · about

  1. 0:00Introduction and project overview
  2. 7:11Toolchain and compiler setup
  3. 8:57Boot sequence and startup code
  4. 12:33Application Binary Interface basics
  5. 20:56Linker scripts and memory sections
  6. 26:43Handling linker script errors
  7. 28:11Threading and context switching
  8. 34:33Preemptive vs cooperative scheduling
  9. 37:05Interrupt handling in real-time OS
  10. 41:07Live demo and system debugging
  11. 46:51Trap handler and error reporting
  12. 51:02CSR registers and inline assembly
  13. 58:03Optimization and code readability
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.