Files
mop3/init/init.c
kamkow1 f103bdd739
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m12s
Redesign reschedule points, allow one operation to reschedule many cpus at once
2026-02-18 23:16:03 +01:00

26 lines
458 B
C

#include <kb.h>
#include <limits.h>
#include <process.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <terminal.h>
void app_main (void) {
int ce_pid = exec ("ramdisk:/ce");
int ce_pgid = get_procgroup (ce_pid);
for (;;) {
int ch = kb_read_key ();
if (ch <= 0)
continue;
mail_send (ce_pgid, (uint8_t*)&ch, 1);
/* char rcv; */
/* mail_receive (&rcv, 1); */
/* terminal_print (&rcv, 1); */
}
}