mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
i386: Make setidt_disp a size_t instead of uintptr_t
setidt_disp is the offset of the ISR trampoline relative to the address of the routines in exception.s, so uintptr_t is not quite right. Also remove a bogus declaration I added in commit18f55c67f7, it is not required after all. Reported by: jrtc27 Reviewed by: jrtc27, kib Sponsored by: The FreeBSD Foundation (cherry picked from commitcbe59a6475)
This commit is contained in:
parent
5a7d63129a
commit
949fb4f962
3 changed files with 2 additions and 6 deletions
|
|
@ -1514,7 +1514,7 @@ static struct soft_segment_descriptor ldt_segs[] = {
|
|||
.ssd_gran = 1 },
|
||||
};
|
||||
|
||||
uintptr_t setidt_disp;
|
||||
size_t setidt_disp;
|
||||
|
||||
void
|
||||
setidt(int idx, inthand_t *func, int typ, int dpl, int selec)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ extern int szosigcode;
|
|||
extern int sz_lcall_tramp;
|
||||
#endif
|
||||
extern vm_offset_t proc0kstack;
|
||||
extern uintptr_t setidt_disp;
|
||||
extern size_t setidt_disp;
|
||||
|
||||
struct segment_descriptor;
|
||||
union savefpu;
|
||||
|
|
|
|||
|
|
@ -2115,10 +2115,6 @@ native_lapic_ipi_vectored(u_int vector, int dest)
|
|||
|
||||
#endif /* SMP */
|
||||
|
||||
#ifdef __i386__
|
||||
extern uintptr_t setidt_disp;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Since the IDT is shared by all CPUs the IPI slot update needs to be globally
|
||||
* visible.
|
||||
|
|
|
|||
Loading…
Reference in a new issue