Use a big-lock for kernel sychronization instead of fine-grained locking
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 2m21s
Build documentation / build-and-deploy (push) Successful in 54s

This commit is contained in:
2026-04-27 18:06:02 +02:00
parent 68cdd8d6d2
commit e5ebd7f3ba
56 changed files with 212 additions and 1206 deletions

View File

@@ -14,17 +14,13 @@ DEFINE_DEVICE_INIT(debugconsole_init) {
DEFINE_DEVICE_FINI(debugconsole_fini) {}
DEFINE_DEVICE_OP(debugconsole_putstr) {
uint64_t fp;
char* string = (char*)a1;
size_t* len = (size_t*)a2;
if (string == NULL || len == NULL)
return -ST_BAD_ADDRESS_SPACE;
spin_lock(&proc->lock, &fp);
int pid = proc->pid;
spin_unlock(&proc->lock, fp);
debugprintf("(CPU %d; PID %d) %.*s", thiscpu->id, pid, (int)*len, string);