mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 05:08:22 +00:00
initialise the APs
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user