initialise the APs

This commit is contained in:
Matheus
2022-08-06 14:56:31 -03:00
parent fa1b35bf18
commit dee3fe16db
13 changed files with 142 additions and 9 deletions
+5
View File
@@ -1,11 +1,16 @@
#include <stdio.h>
#include <arch/spinlock.h>
static int lock = 0;
__attribute__ ((format (printf, 1, 2))) int printf (const char* format, ...)
{
spinlock_acquire(&lock);
va_list list;
va_start (list, format);
int i = vprintf (format, list);
va_end (list);
spinlock_release(&lock);
return i;
}