Sorting header files

This commit is contained in:
Thomas Lovén 2022-01-06 22:16:50 +01:00
parent ebcf155c3a
commit 64df5d2b45
3 changed files with 9 additions and 6 deletions

View File

@ -18,11 +18,6 @@
#define debug_error(...)
#endif
void debug_printf(char *fmt, ...);
void debug_puts(char *s);
void debug_putsn(char *s, size_t n);
void debug_putsh(char c);
#define S(x) #x
#define S_(x) S(x)
#define S__LINE__ S_(__LINE__)
@ -38,3 +33,8 @@ void debug_putsh(char c);
} \
}while(0)
// boot/debug.c
void debug_printf(char *fmt, ...);
void debug_puts(char *s);
void debug_putsn(char *s, size_t n);
void debug_putsh(char c);

View File

@ -24,8 +24,10 @@ struct kernel_boot_data_st{
#define MMAP_FREE 1
// boot/kmain.c
extern struct kernel_boot_data_st kernel_boot_data;
// boot/multiboot.c
int multiboot_init(uint64_t magic, void *mboot_info);
int multiboot_get_memory_area(size_t index, uintptr_t *start, uintptr_t *end, uint32_t *type);
#endif

View File

@ -3,5 +3,6 @@
#define VGA_MEMORY P2V(0xB8000)
// drivers/vga.c
void vga_init();
void vga_write(char c);