Use ANSI definitions for some i386 functions.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
f73ff060d2
commit
9c16356ccd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313109
@ -2164,8 +2164,7 @@ i386_kdb_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
register_t
|
register_t
|
||||||
init386(first)
|
init386(int first)
|
||||||
int first;
|
|
||||||
{
|
{
|
||||||
struct gate_descriptor *gdp;
|
struct gate_descriptor *gdp;
|
||||||
int gsel_tss, metadata_missing, x, pa;
|
int gsel_tss, metadata_missing, x, pa;
|
||||||
|
@ -172,11 +172,7 @@ alloc_fpusave(int flags)
|
|||||||
* ready to run and return to user mode.
|
* ready to run and return to user mode.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
cpu_fork(td1, p2, td2, flags)
|
cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags)
|
||||||
register struct thread *td1;
|
|
||||||
register struct proc *p2;
|
|
||||||
struct thread *td2;
|
|
||||||
int flags;
|
|
||||||
{
|
{
|
||||||
register struct proc *p1;
|
register struct proc *p1;
|
||||||
struct pcb *pcb2;
|
struct pcb *pcb2;
|
||||||
|
@ -542,8 +542,7 @@ SYSINIT(npxinitstate, SI_SUB_DRIVERS, SI_ORDER_ANY, npxinitstate, NULL);
|
|||||||
* Free coprocessor (if we have it).
|
* Free coprocessor (if we have it).
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
npxexit(td)
|
npxexit(struct thread *td)
|
||||||
struct thread *td;
|
|
||||||
{
|
{
|
||||||
|
|
||||||
critical_enter();
|
critical_enter();
|
||||||
@ -573,7 +572,7 @@ npxexit(td)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
npxformat()
|
npxformat(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!hw_float)
|
if (!hw_float)
|
||||||
@ -953,7 +952,7 @@ npxresume(union savefpu *addr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
npxdrop()
|
npxdrop(void)
|
||||||
{
|
{
|
||||||
struct thread *td;
|
struct thread *td;
|
||||||
|
|
||||||
@ -1289,8 +1288,7 @@ fpu_clean_state(void)
|
|||||||
#endif /* CPU_ENABLE_SSE */
|
#endif /* CPU_ENABLE_SSE */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
fpurstor(addr)
|
fpurstor(union savefpu *addr)
|
||||||
union savefpu *addr;
|
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef CPU_ENABLE_SSE
|
#ifdef CPU_ENABLE_SSE
|
||||||
|
Loading…
Reference in New Issue
Block a user