idt_* are not implemented for Xen. So don't provide the prototypes for Xen.

This commit is contained in:
cegger 2008-04-19 12:10:08 +00:00
parent 0789b071d1
commit ed5b592b8e
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: segments.h,v 1.17 2008/04/16 21:51:03 cegger Exp $ */
/* $NetBSD: segments.h,v 1.18 2008/04/19 12:10:08 cegger Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -232,13 +232,15 @@ void set_sys_segment(struct sys_segment_descriptor *, void *, size_t,
int, int, int);
void set_mem_segment(struct mem_segment_descriptor *, void *, size_t,
int, int, int, int, int);
void cpu_init_idt(void);
#if !defined(XEN)
void idt_init(void);
void idt_vec_reserve(int);
int idt_vec_alloc(int, int);
void idt_vec_set(int, void (*)(void));
void idt_vec_free(int);
void cpu_init_idt(void);
#endif
struct lwp;
int memseg_baseaddr(struct lwp *, uint64_t, char *, int, uint64_t *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: segments.h,v 1.48 2008/01/11 20:00:16 bouyer Exp $ */
/* $NetBSD: segments.h,v 1.49 2008/04/19 12:10:08 cegger Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -198,11 +198,13 @@ void setgdt(int, const void *, size_t, int, int, int, int);
void unsetgate(struct gate_descriptor *);
void cpu_init_idt(void);
#if !defined(XEN)
void idt_init(void);
void idt_vec_reserve(int);
int idt_vec_alloc(int, int);
void idt_vec_set(int, void (*)(void));
void idt_vec_free(int);
#endif
#endif /* _KERNEL */