First Hello world syscall
All checks were successful
Build documentation / build-and-deploy (push) Successful in 26s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 26s
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
#ifndef _KERNEL_SYS_DEBUG_H
|
||||
#define _KERNEL_SYS_DEBUG_H
|
||||
|
||||
#include <sys/smp.h>
|
||||
|
||||
void debugprintf (const char* fmt, ...);
|
||||
|
||||
#define DEBUG(fmt, ...) \
|
||||
do { \
|
||||
debugprintf ("%s: " fmt, __func__, ##__VA_ARGS__); \
|
||||
if (thiscpu != NULL) { \
|
||||
debugprintf ("(CPU %u) %s:%d: " fmt, thiscpu->id, __func__, __LINE__, ##__VA_ARGS__); \
|
||||
} else { \
|
||||
debugprintf ("%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif // _KERNEL_SYS_DEBUG_H
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#ifndef _KERNEL_SYS_SCHED_H
|
||||
#define _KERNEL_SYS_SCHED_H
|
||||
|
||||
#include <sys/mm.h>
|
||||
#include <libk/std.h>
|
||||
#include <proc/proc.h>
|
||||
|
||||
void do_sched (void* regs, struct pd* pd);
|
||||
void do_sched (struct proc* proc);
|
||||
|
||||
#endif // _KERNEL_SYS_SCHED_H
|
||||
|
||||
6
kernel/sys/syscall.h
Normal file
6
kernel/sys/syscall.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef _KERNEL_SYS_SYSCALL_H
|
||||
#define _KERNEL_SYS_SYSCALL_H
|
||||
|
||||
void syscall_init (void);
|
||||
|
||||
#endif // _KERNEL_SYS_SYSCALL_H
|
||||
Reference in New Issue
Block a user