File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #ifndef SYS_CONFIG_H
2+ #define SYS_CONFIG_H
3+
14#include "types.h"
25
36typedef struct {
@@ -6,3 +9,6 @@ typedef struct {
69
710void sys_config_init (void );
811sys_config_state_t sys_config_state (void );
12+
13+ #endif
14+
Original file line number Diff line number Diff line change 1+ #ifndef SYS_VIEW_H
2+ #define SYS_VIEW_H
3+
14#include "types.h"
25
36typedef struct {
@@ -6,3 +9,6 @@ typedef struct {
69
710void sys_view_init (void );
811sys_view_state_t sys_view_state (void );
12+
13+ #endif
14+
Original file line number Diff line number Diff line change 1+ #ifndef SYSCALL_H
2+ #define SYSCALL_H
3+
14#include "idt.h"
25
36enum {
4245#define OS_ERR 0xFFFFFFFFu
4346
4447void syscall_init (void );
48+
49+ #endif
50+
Original file line number Diff line number Diff line change 1+ #ifndef TASK_H
2+ #define TASK_H
3+
14#include "types.h"
25#include "idt.h"
36
@@ -17,3 +20,6 @@ registers_t* scheduler(registers_t* regs);
1720int task_create (void (* entry )(void ));
1821void switch_to (task_t * next );
1922extern task_t * current_task_ptr ;
23+
24+ #endif
25+
Original file line number Diff line number Diff line change 1+ #ifndef TIMER_H
2+ #define TIMER_H
3+
14#include "types.h"
25
36void pit_init (uint32_t frequency );
47uint64_t timer_get_ticks (void );
8+
9+ #endif
10+
Original file line number Diff line number Diff line change 1+ #ifndef TRACE_FORGE_H
2+ #define TRACE_FORGE_H
3+
14#include "types.h"
25
36typedef struct {
@@ -15,3 +18,6 @@ void trace_forge_init(void);
1518void trace_forge_emit (uint32_t tag , uint32_t value );
1619trace_forge_state_t trace_forge_state (void );
1720uint32_t trace_forge_get (uint32_t index , trace_event_t * out );
21+
22+ #endif
23+
Original file line number Diff line number Diff line change 1+ #ifndef TTY_CORE_H
2+ #define TTY_CORE_H
3+
14#include "types.h"
25
36typedef struct {
@@ -7,3 +10,6 @@ typedef struct {
710
811void tty_core_init (void );
912tty_state_t * tty_core_state (void );
13+
14+ #endif
15+
Original file line number Diff line number Diff line change 1+ #ifndef TYPES_H
2+ #define TYPES_H
3+
14typedef unsigned char uint8_t ;
25typedef unsigned short uint16_t ;
36typedef unsigned int uint32_t ;
@@ -8,3 +11,6 @@ typedef signed int int32_t;
811typedef signed long long int64_t ;
912
1013typedef volatile uint32_t spinlock_t ;
14+
15+ #endif
16+
Original file line number Diff line number Diff line change 1+ #ifndef USB_NEXUS_H
2+ #define USB_NEXUS_H
3+
14#include "types.h"
25
36void usb_nexus_init (void );
47uint32_t usb_nexus_ports (void );
8+
9+ #endif
10+
Original file line number Diff line number Diff line change 1+ #ifndef USERMODE_H
2+ #define USERMODE_H
3+
14#include "types.h"
25
36void switch_to_user_mode (uint32_t entry_point , uint32_t user_stack );
7+
8+ #endif
9+
You can’t perform that action at this time.
0 commit comments