no need to disable fpu in execregs, this is done in procsetup() already
This commit is contained in:
parent
f0c9bb979f
commit
62f6d1bc43
|
@ -107,7 +107,6 @@ execregs(ulong entry, ulong ssize, ulong nargs)
|
||||||
ulong *sp;
|
ulong *sp;
|
||||||
Ureg *ureg;
|
Ureg *ureg;
|
||||||
|
|
||||||
up->fpstate = FPinit;
|
|
||||||
sp = (ulong *) (USTKTOP - ssize);
|
sp = (ulong *) (USTKTOP - ssize);
|
||||||
*--sp = nargs;
|
*--sp = nargs;
|
||||||
|
|
||||||
|
|
|
@ -984,9 +984,6 @@ execregs(ulong entry, ulong ssize, ulong nargs)
|
||||||
ulong *sp;
|
ulong *sp;
|
||||||
Ureg *ureg;
|
Ureg *ureg;
|
||||||
|
|
||||||
up->fpstate = FPinit;
|
|
||||||
fpoff();
|
|
||||||
|
|
||||||
sp = (ulong*)(USTKTOP - ssize);
|
sp = (ulong*)(USTKTOP - ssize);
|
||||||
*--sp = nargs;
|
*--sp = nargs;
|
||||||
|
|
||||||
|
|
|
@ -538,7 +538,7 @@ execregs(ulong entry, ulong ssize, ulong nargs)
|
||||||
ureg->usp = (ulong)sp;
|
ureg->usp = (ulong)sp;
|
||||||
ureg->pc = entry;
|
ureg->pc = entry;
|
||||||
ureg->srr1 &= ~MSR_FP; /* disable floating point */
|
ureg->srr1 &= ~MSR_FP; /* disable floating point */
|
||||||
up->fpstate = FPinit;
|
|
||||||
return USTKTOP-sizeof(Tos); /* address of kernel/user shared data */
|
return USTKTOP-sizeof(Tos); /* address of kernel/user shared data */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue