mirror of
https://github.com/tailix/kernel.git
synced 2024-11-20 11:16:10 -05:00
Add include dir
This commit is contained in:
parent
43fae1b582
commit
b289b67088
7 changed files with 11 additions and 8 deletions
2
Makefile
2
Makefile
|
@ -10,7 +10,7 @@ all: all-kernel all-iso all-libk
|
||||||
clean: clean-kernel clean-iso clean-libk
|
clean: clean-kernel clean-iso clean-libk
|
||||||
|
|
||||||
all-kernel: all-libk
|
all-kernel: all-libk
|
||||||
make all -C arch LIBK=$(shell pwd)/libk/libk.a
|
make all -C arch I=$(shell pwd)/include LIBK=$(shell pwd)/libk/libk.a
|
||||||
|
|
||||||
clean-kernel:
|
clean-kernel:
|
||||||
make clean -C arch
|
make clean -C arch
|
||||||
|
|
|
@ -27,7 +27,7 @@ kernel: $(OBJS)
|
||||||
grub-file --is-x86-multiboot2 $@
|
grub-file --is-x86-multiboot2 $@
|
||||||
|
|
||||||
%.c.o: %.c
|
%.c.o: %.c
|
||||||
$(CC) -c $< -o $@ -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra
|
$(CC) -c $< -o $@ -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra -I "$(I)"
|
||||||
|
|
||||||
%.s.o: %.s
|
%.s.o: %.s
|
||||||
$(AS) $< -o $@
|
$(AS) $< -o $@
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
|
|
||||||
#include "util.h"
|
#include <kernelmq/stdlib.h>
|
||||||
|
|
||||||
static unsigned short *const console_buffer = (unsigned short*)0xB8000;
|
static unsigned short *const console_buffer = (unsigned short*)0xB8000;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#include "kprintf.h"
|
#include "kprintf.h"
|
||||||
|
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
#include "util.h"
|
|
||||||
|
#include <kernelmq/stdlib.h>
|
||||||
|
|
||||||
void kprintf(const char *format, ...)
|
void kprintf(const char *format, ...)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "kmalloc.h"
|
#include "kmalloc.h"
|
||||||
#include "util.h"
|
|
||||||
|
#include <kernelmq/stdlib.h>
|
||||||
|
|
||||||
#define PAGES_PER_TABLE 1024
|
#define PAGES_PER_TABLE 1024
|
||||||
#define TABLES_PER_DIR 1024
|
#define TABLES_PER_DIR 1024
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
#include "asm.h"
|
#include "asm.h"
|
||||||
#include "exception.h"
|
#include "exception.h"
|
||||||
#include "hwint.h"
|
#include "hwint.h"
|
||||||
#include "util.h"
|
|
||||||
|
#include <kernelmq/stdlib.h>
|
||||||
|
|
||||||
struct GdtPointer {
|
struct GdtPointer {
|
||||||
unsigned short limit;
|
unsigned short limit;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef KERNELMQ_INCLUDED_UTIL
|
#ifndef KERNELMQ_INCLUDED_STDLIB
|
||||||
#define KERNELMQ_INCLUDED_UTIL 1
|
#define KERNELMQ_INCLUDED_STDLIB 1
|
||||||
|
|
||||||
void memset(void *buffer, unsigned char value, unsigned int size);
|
void memset(void *buffer, unsigned char value, unsigned int size);
|
||||||
unsigned int strlen(const char *s);
|
unsigned int strlen(const char *s);
|
Loading…
Reference in a new issue