-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.h
34 lines (29 loc) · 909 Bytes
/
lib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef LIB_H_H
#define LIB_H_H
#include "types.h"
#include "protected.h"
#include "interupt.h"
/* lib.asm */
extern void apply_paging();
extern void out_byte(u16 port, u8 value);
extern u8 in_byte(u16 port);
extern void load_idtr(struct dtr idtr);
extern void load_gdtr(struct dtr gdtr);
extern void save_gdtr();
extern void load_ldtr(struct dtr ldtr);
extern void save_ldtr();
extern void set_interupt();
extern void clear_interupt();
extern void load_tss();
extern void start_task();
extern void inc_char2();
extern void inc_char4();
extern void inc_char6();
extern void disp_str(char *string);
/* libc.c */
extern int disp_pos; /* strores the current display position */
extern void *memcpy(void *dest, const void *src, int size);
extern void init_descriptor(struct descriptor *desc, u32 base, u32 limit, u16 attr);
extern char * kitoa(char * str, int num);
extern void disp_int(int integer);
#endif