Skip to content

Commit e74f160

Browse files
sigilanteCopilot
andcommitted
Fix cold_start: boot to QUIT not KERNEL
cold_start pointed to word_kernel, which calls pill_load/cue before the setjmp recovery point in QUIT is established. On real hardware (no QEMU -device loader), this cues garbage at 0x10000000, crashes, and longjmps into an uninitialized nock_abort — hang, no REPL. Boot to word_quit instead. Type KERNEL at the REPL when ready to load the PILL explicitly. 376/376 tests still passing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 73d6273 commit e74f160

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/forth.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2846,7 +2846,7 @@ str_bench_def_end:
28462846
.balign 8
28472847
.global cold_start
28482848
cold_start:
2849-
.quad word_kernel
2849+
.quad word_quit
28502850

28512851
// ═════════════════════════════════════════════════════════════════════════════
28522852
// ENTRY POINT

0 commit comments

Comments
 (0)