Debian Codegraph @

i386/i386at/model_dep.h

raw
1 /*
2 * Copyright (c) 2013 Free Software Foundation.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19 #ifndef _MODEL_DEP_H_
20 #define _MODEL_DEP_H_
21
22 #include <i386/vm_param.h>
23 #include <mach/vm_prot.h>
24
25 /*
26 * Interrupt stack.
27 */
28 extern vm_offset_t int_stack_top[NCPUS], int_stack_base[NCPUS];
29
30 /* Check whether P points to the per-cpu interrupt stack. */
31 #define ON_INT_STACK(P, CPU) (((P) & ~(INTSTACK_SIZE-1)) == int_stack_base[CPU])
32
33 extern vm_offset_t timemmap(dev_t dev, vm_offset_t off, vm_prot_t prot);
34
35 void inittodr(void);
36
37 boolean_t init_alloc_aligned(vm_size_t size, vm_offset_t *addrp);
38
39 #endif /* _MODEL_DEP_H_ */