did some restructuring, got multitasking almost working
This commit is contained in:
13
kernel/lib/tasks.h
Normal file
13
kernel/lib/tasks.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef KTASKS_H
|
||||
#define KTASKS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
volatile uint32_t locked;
|
||||
} spinlock_t;
|
||||
|
||||
void spin_lock(spinlock_t *lock);
|
||||
void spin_unlock(spinlock_t *lock);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user