Deleted inb and outb functions.
This commit is contained in:
@@ -8,8 +8,7 @@ if x86
|
|||||||
quark_kernel_SOURCES += x86/pagetableentry.cpp \
|
quark_kernel_SOURCES += x86/pagetableentry.cpp \
|
||||||
x86/mmap.cpp \
|
x86/mmap.cpp \
|
||||||
x86/interrupts.cpp \
|
x86/interrupts.cpp \
|
||||||
x86/entry.S \
|
x86/entry.S
|
||||||
x86/pio.S
|
|
||||||
quark_kernel_LDFLAGS += -T x86/linker.ld
|
quark_kernel_LDFLAGS += -T x86/linker.ld
|
||||||
quark_kernel_DEPENDENCIES = x86/linker.ld
|
quark_kernel_DEPENDENCIES = x86/linker.ld
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
#include "systypes.hpp"
|
#include "systypes.hpp"
|
||||||
#include "systeminfo.hpp"
|
#include "systeminfo.hpp"
|
||||||
#include "mmgr.hpp"
|
#include "mmgr.hpp"
|
||||||
#include "x86/pio.hpp"
|
|
||||||
#include "tty.hpp"
|
#include "tty.hpp"
|
||||||
#include "util.hpp"
|
#include "util.hpp"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@@ -30,7 +29,5 @@ void main(char* cmdline)
|
|||||||
}
|
}
|
||||||
BuddyAllocator alloc(memmap, (char*) 0xFF800000, system_info.getHighMemory() / 4 + 256, 6);
|
BuddyAllocator alloc(memmap, (char*) 0xFF800000, system_info.getHighMemory() / 4 + 256, 6);
|
||||||
mmap(alloc, (void*) 0, 4096, MMAP_RW);
|
mmap(alloc, (void*) 0, 4096, MMAP_RW);
|
||||||
outb(0xa1, 0xff);
|
|
||||||
outb(0x21, 0xff);
|
|
||||||
tty << "Nothing left to do. Hanging.\n";
|
tty << "Nothing left to do. Hanging.\n";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user