Copy bios device functions to kernel

This commit is contained in:
Byron Lathi
2023-09-04 14:31:55 -07:00
parent 791bffb248
commit a770d938de
12 changed files with 1071 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#ifndef _INTERRUPT_H
#define _INTERRUPT_H
#include <stdint.h>
#define BUTTON (1 << 0)
#define UART (1 << 1)
void irq_int();
void nmi_int();
uint8_t irq_get_status();
void irq_set_status(uint8_t);
#endif