From f68fc872755189bc287a5f7ca838dbd9f45c8353 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 17 Jul 2026 15:12:11 +0200 Subject: net: pump the network from the console wait (answer pings at the prompt) A Game Boy sitting at the shell prompt now services the network instead of being deaf until you run netd: KGetc (the console input wait) pumps net_pump each poll, so inbound pings are auto-answered while idle. net_pump gained an in-frame model and routes any non-framed link bytes to a small console-input ring (con_push/con_pop), so a headless-injected command still reaches the shell while SLIP frames go to the stack. Removes the old SLIP-skip-in-KGetc hack. Verified: two Game Boys on the hub, GB0 idle at the prompt (no netd), GB1 `ping 10.0.0.2` -> 4/4 replies, routed GB1->hub->GB0->hub->GB1. (Separate, pre-existing: gbhub *spawn* mode and windowed gbjoin can drop an idle link socket - under investigation; daemon mode + headless is solid.) --- src/kdata.asm | 1 - 1 file changed, 1 deletion(-) (limited to 'src/kdata.asm') diff --git a/src/kdata.asm b/src/kdata.asm index eece708..83ed162 100644 --- a/src/kdata.asm +++ b/src/kdata.asm @@ -56,7 +56,6 @@ wFsPath:: DS 40 ; kernel-side copy of a path argument wFsSlashPtr::DS 2 ; last '/' seen while splitting a path wListDir:: DS 1 ; directory sys_list enumerates wKChar:: DS 1 ; scratch for KPutc -wConInSkip:: DS 1 ; console input: mid-SLIP-frame? (skip net packets) wSleepTarget::DS 1 ; sys_sleep: target in 1/64-second units wSleepAcc:: DS 2 ; sys_sleep: accumulated DIV ticks wSleepLastDiv::DS 1 ; sys_sleep: previous DIV reading -- cgit v1.3.1-sl0p