Cleanup in elf.c with .bss section clean; adm command mounts cdrom instead of floppy...
[ZeXOS.git] / kernel / arch / i386 / include / ipi.h
blob8ae52849c498d2ac7dd5c2d2ce21b5b80086e13e
1 /*
2 * ZeX/OS
3 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _IPI_H
21 #define _IPI_H
23 /* Local APIC registers */
24 #define LAPIC_REG_INT_LOW 0xc0
25 #define LAPIC_REG_INT_HIGH 0xc4
27 /* Local APIC int vectors */
28 #define LAPIC_IV_TIMER 0xe0
29 #define LAPIC_IV_LINT0 0xe1
30 #define LAPIC_IV_LINT1 0xe2
31 #define LAPIC_IV_ERROR 0xe3
32 #define LAPIC_IV_SPURIOUS 0xef
34 /* Local APIC register's flags */
35 #define LAPIC_REG_FLAG_WRITE 0x4000
37 /* Interprocessor interrupt types */
38 #define IPI_TYPE_FIXED 0x0
39 #define IPI_TYPE_INIT 0x500
40 #define IPI_TYPE_SIPI 0x600
42 extern unsigned ipi_lapic_init (unsigned addr);
44 #endif