Convert kernel over to bsdmake
This commit is contained in:
7
kernel/arch/i386/include/arch_clock.h
Normal file
7
kernel/arch/i386/include/arch_clock.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef __CLOCK_X86_H__
|
||||
#define __CLOCK_X86_H__
|
||||
|
||||
_PROTOTYPE(int init_8253A_timer, (unsigned freq));
|
||||
_PROTOTYPE(void stop_8253A_timer, (void));
|
||||
|
||||
#endif /* __CLOCK_X86_H__ */
|
||||
26
kernel/arch/i386/include/arch_watchdog.h
Normal file
26
kernel/arch/i386/include/arch_watchdog.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef __I386_WATCHDOG_H__
|
||||
#define __I386_WATCHDOG_H__
|
||||
|
||||
#include "kernel/kernel.h"
|
||||
|
||||
struct nmi_frame {
|
||||
reg_t eax;
|
||||
reg_t ecx;
|
||||
reg_t edx;
|
||||
reg_t ebx;
|
||||
reg_t esp;
|
||||
reg_t ebp;
|
||||
reg_t esi;
|
||||
reg_t edi;
|
||||
u16_t gs;
|
||||
u16_t fs;
|
||||
u16_t es;
|
||||
u16_t ds;
|
||||
reg_t pc; /* arch independent name for program counter */
|
||||
reg_t cs;
|
||||
reg_t eflags;
|
||||
};
|
||||
|
||||
void i386_watchdog_start(void);
|
||||
|
||||
#endif /* __I386_WATCHDOG_H__ */
|
||||
15
kernel/arch/i386/include/hw_intr.h
Normal file
15
kernel/arch/i386/include/hw_intr.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef __HW_INTR_X86_H__
|
||||
#define __HW_INTR_X86_H__
|
||||
|
||||
#include "kernel/kernel.h"
|
||||
|
||||
/* legacy PIC */
|
||||
|
||||
_PROTOTYPE(void irq_8259_unmask,(int irq));
|
||||
_PROTOTYPE(void irq_8259_mask,(int irq));
|
||||
_PROTOTYPE(void irq_handle,(int irq));
|
||||
|
||||
#define hw_intr_mask(irq) irq_8259_mask(irq)
|
||||
#define hw_intr_unmask(irq) irq_8259_unmask(irq)
|
||||
|
||||
#endif /* __HW_INTR_X86_H__ */
|
||||
Reference in New Issue
Block a user