Deleted inb and outb functions.

This commit is contained in:
2020-08-01 19:05:37 -05:00
parent 39710685fb
commit 6dc610c9aa
4 changed files with 1 additions and 26 deletions

View File

@@ -8,8 +8,7 @@ if x86
quark_kernel_SOURCES += x86/pagetableentry.cpp \
x86/mmap.cpp \
x86/interrupts.cpp \
x86/entry.S \
x86/pio.S
x86/entry.S
quark_kernel_LDFLAGS += -T x86/linker.ld
quark_kernel_DEPENDENCIES = x86/linker.ld
endif

View File

@@ -4,7 +4,6 @@
#include "systypes.hpp"
#include "systeminfo.hpp"
#include "mmgr.hpp"
#include "x86/pio.hpp"
#include "tty.hpp"
#include "util.hpp"
#include "config.h"
@@ -30,7 +29,5 @@ void main(char* cmdline)
}
BuddyAllocator alloc(memmap, (char*) 0xFF800000, system_info.getHighMemory() / 4 + 256, 6);
mmap(alloc, (void*) 0, 4096, MMAP_RW);
outb(0xa1, 0xff);
outb(0x21, 0xff);
tty << "Nothing left to do. Hanging.\n";
}

View File

@@ -1,13 +0,0 @@
.global outb
outb:
mov 4(%esp), %dx
mov 8(%esp), %al
out %al, %dx
ret
.global inb
inb:
mov 4(%esp), %dx
xor %eax, %eax
in %dx, %al
ret

View File

@@ -1,8 +0,0 @@
#ifndef PIO_H
#define PIO_H
extern "C" void outb(short port, char data);
extern "C" char inb(short port);
#endif