git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: one more step towards arch-agnostic design
[lunaix-os.git]
/
lunaix-os
/
kernel
/
debug
/
gdbstub.c
diff --git
a/lunaix-os/kernel/debug/gdbstub.c
b/lunaix-os/kernel/debug/gdbstub.c
index 38d35adf0b13e75a56aa771725a0abdb3ce3840d..072b6a42c8a4eb585f5585a44807a38cb3fbebe1 100644
(file)
--- a/
lunaix-os/kernel/debug/gdbstub.c
+++ b/
lunaix-os/kernel/debug/gdbstub.c
@@
-32,10
+32,10
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-#include <hal/io.h>
#include <klibc/string.h>
#include <lunaix/peripheral/serial.h>
#include <sdbg/gdbstub.h>
#include <klibc/string.h>
#include <lunaix/peripheral/serial.h>
#include <sdbg/gdbstub.h>
+#include <sys/port_io.h>
/*****************************************************************************
* Types
/*****************************************************************************
* Types
@@
-1191,8
+1191,8
@@
struct gdb_idt_gate
/*****************************************************************************
* Prototypes
****************************************************************************/
/*****************************************************************************
* Prototypes
****************************************************************************/
-#define gdb_x86_io_write_8(port, val)
io_outb
(port, val)
-#define gdb_x86_io_read_8(port)
io_inb
(port)
+#define gdb_x86_io_write_8(port, val)
port_wrbyte
(port, val)
+#define gdb_x86_io_read_8(port)
port_rdbyte
(port)
#define gdb_x86_serial_getc() serial_rx_byte(COM_PORT)
#define gdb_x86_serial_putchar(ch) serial_tx_byte(COM_PORT, ch)
#define gdb_x86_serial_getc() serial_rx_byte(COM_PORT)
#define gdb_x86_serial_putchar(ch) serial_tx_byte(COM_PORT, ch)