radianceRadiance self-hosting compiler home log refs
master
  • master
  • agent/cell-permissions
  • cloudhead/master-next
  • agent/master-fixes
  • agent/lexical-regions-kernel-t2
  • agent/kernel-t2
  • kernel
  • cloudhead/memory-safety
  • cloudhead/generic-core-types
  • radiance-generics
  • ai/ril-safety
e5b52896 mem: Export typed layout queries Alexis Sellier 4 days ago
Clone
.githooks/ compiler/ kernel/ lib/ scripts/ seed/ sublime/ test/ boot/ machine.ras 230 B trap.ras 248 B bootstrap/ compiler/ cycles/ dispatch/ format/ host/ integration/ kernel/ loader/ manifests/ mmio/ native/ packages/ runtime/ scheduling/ shared/ slots/ smp/ std/ sync/ termination/ tests/ trap/ verify/ Makefile 9.2 KiB kernel.rad 776 B runner.rad 11.6 KiB vim/ .gitignore 333 B .gitsigners 224 B AGENTS.md 8.3 KiB CONTRIBUTING 2.1 KiB LICENSE 1.1 KiB Makefile 2.5 KiB README 3.4 KiB STYLE 3.2 KiB std.lib 2.1 KiB std.lib.test 1.1 KiB
test/boot/trap.ras 248 B raw
1
//! Enter a kernel handler after an interrupted context changes gp.
2
.text;
3
    call @kernel::boot::initialize;
4
    beqz %a0 @wait;
5
    li %gp 123;
6
    ecall;
7
    li %t0 0x10001000;
8
    li %t1 0x13333;
9
    sw %t1 0(%t0);
10
@wait
11
    wfi;
12
    j @wait;