port added as well as kbd module to makefile
This commit is contained in:
parent
0a8ea342c6
commit
9e97ca3d28
2
kbd.h
2
kbd.h
@ -3,6 +3,8 @@
|
|||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "interrupts.h"
|
#include "interrupts.h"
|
||||||
|
|
||||||
|
#define KBD_PORT 0x60
|
||||||
|
|
||||||
void kbd_install_keyboard(void);
|
void kbd_install_keyboard(void);
|
||||||
|
|
||||||
void kbd_read_key(struct cpu_reg_state* cpu);
|
void kbd_read_key(struct cpu_reg_state* cpu);
|
||||||
|
2
makefile
2
makefile
@ -4,7 +4,7 @@ LINK=ld
|
|||||||
ISO=genisoimage
|
ISO=genisoimage
|
||||||
|
|
||||||
OBJECTS=mem.o kernel.o gdt_seg.o gdt.o interrupts.o loader.o serial.o \
|
OBJECTS=mem.o kernel.o gdt_seg.o gdt.o interrupts.o loader.o serial.o \
|
||||||
framebuffer.o ports.o stlio.o tests.o interrupt_entry.o pit.o
|
framebuffer.o ports.o stlio.o tests.o interrupt_entry.o pit.o kbd.o
|
||||||
|
|
||||||
AFLAGS=-f elf32
|
AFLAGS=-f elf32
|
||||||
CFLAGS=-masm=intel -O2 -m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles \
|
CFLAGS=-masm=intel -O2 -m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles \
|
||||||
|
Loading…
Reference in New Issue
Block a user