Move IO Port Function to a separate file
This commit is contained in:
parent
a164d9d67c
commit
91b52f1872
2 changed files with 15 additions and 4 deletions
|
|
@ -1,10 +1,8 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#define COM1 0x3f8
|
||||
#include "common/port.h"
|
||||
|
||||
void outb(uint16_t port, uint8_t value) {
|
||||
asm volatile("outb %0, %1" ::"a"(value), "Nd"(port));
|
||||
}
|
||||
#define COM1 0x3f8
|
||||
|
||||
extern "C" void zion() {
|
||||
outb(COM1, 'a');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue