created /kernel/isr subdir, moved isr.asm from boot to isr module, added interrupts.cc for isr() main function and isr_bootstrap() routine
git-svn-id: svn://anubis/hos/trunk@66 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
d352afd079
commit
d7be0159c9
@ -15,7 +15,7 @@ export CXXFLAGS := -Wall -O2 -fno-rtti -fno-exceptions
|
|||||||
export LDFLAGS := -T $(LDSCRIPT) -Map $(KERNEL).map
|
export LDFLAGS := -T $(LDSCRIPT) -Map $(KERNEL).map
|
||||||
export LDLIBS := `$(CC) -print-libgcc-file-name`
|
export LDLIBS := `$(CC) -print-libgcc-file-name`
|
||||||
|
|
||||||
SUBDIRS := boot mm lang
|
SUBDIRS := boot mm lang isr
|
||||||
SUBDIRS_clean := $(SUBDIRS:%=%.clean)
|
SUBDIRS_clean := $(SUBDIRS:%=%.clean)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
2
kernel/isr/Makefile
Executable file
2
kernel/isr/Makefile
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
include $(HOS_TOPLEVEL)/subdir.mak
|
19
kernel/isr/interrupts.cc
Executable file
19
kernel/isr/interrupts.cc
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
#include "hos_types.h"
|
||||||
|
#include "interrupts.h"
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
void isr(u8_t int_num, int_stack_t * int_stack)
|
||||||
|
{
|
||||||
|
switch (int_num)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} /* extern "C" */
|
||||||
|
|
||||||
|
void interrupts_bootstrap()
|
||||||
|
{
|
||||||
|
/* TODO: set up IDTR, IDT */
|
||||||
|
}
|
17
kernel/isr/interrupts.h
Normal file
17
kernel/isr/interrupts.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
#ifndef INTERRUPTS_H
|
||||||
|
#define INTERRUPTS_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void isr(u8_t int_num, int_stack_t * int_stack);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void interrupts_bootstrap();
|
||||||
|
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user