Annotation of prex-old/sys/arch/i386/include/locore.h, Revision 1.1.1.1.2.1
1.1 nbrk 1: /*-
2: * Copyright (c) 2007, Kohsuke Ohtani
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms, with or without
6: * modification, are permitted provided that the following conditions
7: * are met:
8: * 1. Redistributions of source code must retain the above copyright
9: * notice, this list of conditions and the following disclaimer.
10: * 2. Redistributions in binary form must reproduce the above copyright
11: * notice, this list of conditions and the following disclaimer in the
12: * documentation and/or other materials provided with the distribution.
13: * 3. Neither the name of the author nor the names of any co-contributors
14: * may be used to endorse or promote products derived from this software
15: * without specific prior written permission.
16: *
17: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20: * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27: * SUCH DAMAGE.
28: */
29:
30: #ifndef _I386_LOCORE_H
31: #define _I386_LOCORE_H
32:
33: #include <arch.h>
34:
1.1.1.1.2.1! nbrk 35: extern void intr_0(void);
! 36: extern void intr_1(void);
! 37: extern void intr_2(void);
! 38: extern void intr_3(void);
! 39: extern void intr_4(void);
! 40: extern void intr_5(void);
! 41: extern void intr_6(void);
! 42: extern void intr_7(void);
! 43: extern void intr_8(void);
! 44: extern void intr_9(void);
! 45: extern void intr_10(void);
! 46: extern void intr_11(void);
! 47: extern void intr_12(void);
! 48: extern void intr_13(void);
! 49: extern void intr_14(void);
! 50: extern void intr_15(void);
! 51: extern void trap_default(void);
! 52: extern void trap_0(void);
! 53: extern void trap_1(void);
! 54: extern void trap_2(void);
! 55: extern void trap_3(void);
! 56: extern void trap_4(void);
! 57: extern void trap_5(void);
! 58: extern void trap_6(void);
! 59: extern void trap_7(void);
! 60: extern void trap_8(void);
! 61: extern void trap_9(void);
! 62: extern void trap_10(void);
! 63: extern void trap_11(void);
! 64: extern void trap_12(void);
! 65: extern void trap_13(void);
! 66: extern void trap_14(void);
! 67: extern void trap_15(void);
! 68: extern void trap_16(void);
! 69: extern void trap_17(void);
! 70: extern void trap_18(void);
! 71: extern void syscall_entry(void);
! 72: extern void syscall_ret(void);
! 73: extern void cpu_switch(struct kern_regs *, struct kern_regs *);
! 74: extern void known_fault1(void);
! 75: extern void known_fault2(void);
! 76: extern void known_fault3(void);
! 77: extern void umem_fault(void);
! 78:
! 79: extern void cpu_reset(void);
! 80: extern void flush_tlb(void);
! 81:
! 82: extern void lgdt(void *);
! 83: extern void lidt(void *);
! 84: extern void ltr(uint32_t);
! 85: extern uint32_t get_eflags(void);
! 86: extern void set_eflags(uint32_t);
! 87: extern void set_cr0(uint32_t);
! 88: extern uint32_t get_cr0(void);
! 89: extern uint32_t get_cr2(void);
! 90: extern void set_cr3(uint32_t);
! 91: extern uint32_t get_cr3(void);
! 92:
! 93: extern void cli(void);
! 94: extern void sti(void);
! 95: extern void outb(u_char, int);
! 96: extern void outb_p(u_char, int);
! 97: extern u_char inb(int);
! 98: extern u_char inb_p(int);
! 99: extern void cpu_idle(void);
1.1 nbrk 100:
101: #endif /* !_I386_LOCORE_H */
CVSweb