summaryrefslogtreecommitdiff
path: root/src/interrupts.c
blob: c4567745b6d3ea3cf2c74bd5622b1c34770edbe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "interrupts.h"

#include "string.h"
#include "stdio.h"

void interrupts_init( interrupt_t *interrupts )
{
	memset( interrupts, 0, sizeof( interrupt_t ) );
}

uint32_t interrupts_handle_interrupt( uint8_t interrupt_no, uint32_t esp )
{
	puts( "interrupt" );
	
	// for now, we are using the same stack for kernel and interrupt
	// handlers (n task switching)
	return esp;
}