mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Merged from sys/i386/i386/machdep.c revision 1.443.
This commit is contained in:
parent
29604605a7
commit
c558d45a97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73019
@ -1430,7 +1430,7 @@ extern inthand_t
|
||||
IDTVEC(bnd), IDTVEC(ill), IDTVEC(dna), IDTVEC(fpusegm),
|
||||
IDTVEC(tss), IDTVEC(missing), IDTVEC(stk), IDTVEC(prot),
|
||||
IDTVEC(page), IDTVEC(mchk), IDTVEC(rsvd), IDTVEC(fpu), IDTVEC(align),
|
||||
IDTVEC(syscall), IDTVEC(int0x80_syscall);
|
||||
IDTVEC(lcall_syscall), IDTVEC(int0x80_syscall);
|
||||
|
||||
void
|
||||
sdtossd(sd, ssd)
|
||||
@ -2339,14 +2339,14 @@ init386(first)
|
||||
/* make a call gate to reenter kernel with */
|
||||
gdp = &ldt[LSYS5CALLS_SEL].gd;
|
||||
|
||||
x = (int) &IDTVEC(syscall);
|
||||
gdp->gd_looffset = x++;
|
||||
x = (int) &IDTVEC(lcall_syscall);
|
||||
gdp->gd_looffset = x;
|
||||
gdp->gd_selector = GSEL(GCODE_SEL,SEL_KPL);
|
||||
gdp->gd_stkcpy = 1;
|
||||
gdp->gd_type = SDT_SYS386CGT;
|
||||
gdp->gd_dpl = SEL_UPL;
|
||||
gdp->gd_p = 1;
|
||||
gdp->gd_hioffset = ((int) &IDTVEC(syscall)) >>16;
|
||||
gdp->gd_hioffset = x >> 16;
|
||||
|
||||
/* XXX does this work? */
|
||||
ldt[LBSDICALLS_SEL] = ldt[LSYS5CALLS_SEL];
|
||||
|
@ -1430,7 +1430,7 @@ extern inthand_t
|
||||
IDTVEC(bnd), IDTVEC(ill), IDTVEC(dna), IDTVEC(fpusegm),
|
||||
IDTVEC(tss), IDTVEC(missing), IDTVEC(stk), IDTVEC(prot),
|
||||
IDTVEC(page), IDTVEC(mchk), IDTVEC(rsvd), IDTVEC(fpu), IDTVEC(align),
|
||||
IDTVEC(syscall), IDTVEC(int0x80_syscall);
|
||||
IDTVEC(lcall_syscall), IDTVEC(int0x80_syscall);
|
||||
|
||||
void
|
||||
sdtossd(sd, ssd)
|
||||
@ -2339,14 +2339,14 @@ init386(first)
|
||||
/* make a call gate to reenter kernel with */
|
||||
gdp = &ldt[LSYS5CALLS_SEL].gd;
|
||||
|
||||
x = (int) &IDTVEC(syscall);
|
||||
gdp->gd_looffset = x++;
|
||||
x = (int) &IDTVEC(lcall_syscall);
|
||||
gdp->gd_looffset = x;
|
||||
gdp->gd_selector = GSEL(GCODE_SEL,SEL_KPL);
|
||||
gdp->gd_stkcpy = 1;
|
||||
gdp->gd_type = SDT_SYS386CGT;
|
||||
gdp->gd_dpl = SEL_UPL;
|
||||
gdp->gd_p = 1;
|
||||
gdp->gd_hioffset = ((int) &IDTVEC(syscall)) >>16;
|
||||
gdp->gd_hioffset = x >> 16;
|
||||
|
||||
/* XXX does this work? */
|
||||
ldt[LBSDICALLS_SEL] = ldt[LSYS5CALLS_SEL];
|
||||
|
Loading…
Reference in New Issue
Block a user