feat: moved libk stuff to libk folder
This commit is contained in:
22
kernel/libk/libk.h
Normal file
22
kernel/libk/libk.h
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// Created by rick on 02-02-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_LIBK_H
|
||||
#define NEW_KERNEL_LIBK_H
|
||||
#include <stdbool.h>
|
||||
|
||||
extern void* _kernel_start;
|
||||
extern void* _kernel_end;
|
||||
#define kernel_start ((uint32_t)(&_kernel_start))
|
||||
#define kernel_end ((uint32_t)(&_kernel_end))
|
||||
|
||||
bool k_addr_in_kspace(void *addr);
|
||||
|
||||
void k_wait_for_interrupt();
|
||||
|
||||
void k_panics(const char *msg);
|
||||
|
||||
void k_panic();
|
||||
|
||||
#endif //NEW_KERNEL_LIBK_H
|
||||
Reference in New Issue
Block a user