kernel: implement support for magenta_debug over serial
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include <arch/serial.h>
|
||||
#include <kernel/machine/debug.h>
|
||||
#include <magenta/status.h>
|
||||
|
||||
kern_status_t debug_read(void *buf, size_t max, size_t *nr_read)
|
||||
{
|
||||
return serial_read(COM1, buf, max, nr_read);
|
||||
}
|
||||
|
||||
kern_status_t debug_write(const void *buf, size_t max, size_t *nr_written)
|
||||
{
|
||||
return serial_write(COM1, buf, max, nr_written);
|
||||
}
|
||||
Reference in New Issue
Block a user