NOVA
Stripped down NOVA kernel for the OSY course
Loading...
Searching...
No Matches
gsi.h
1/*
2 * Global System Interrupts (GSI)
3 *
4 * Copyright (C) 2009-2011 Udo Steinberg <udo@hypervisor.org>
5 * Economic rights: Technische Universitaet Dresden (Germany)
6 *
7 * This file is part of the NOVA microhypervisor.
8 *
9 * NOVA is free software: you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 *
13 * NOVA is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License version 2 for more details.
17 */
18
19#pragma once
20
21#include "assert.h"
22#include "compiler.h"
23#include "config.h"
24
25class Gsi
26{
27 public:
28 uint8 vec;
29 uint8 trg : 1,
30 pol : 1;
31
32 static Gsi gsi_table[NUM_GSI];
33 static unsigned irq_table[NUM_IRQ];
34
35 INIT
36 static void setup();
37
38 REGPARM (1)
39 static void vector (unsigned) asm ("gsi_vector");
40};
Definition gsi.h:26