no need to disable fpu in execregs, this is done in procsetup() already

This commit is contained in:
cinap_lenrek 2013-06-07 18:04:59 +02:00
parent f0c9bb979f
commit 62f6d1bc43
3 changed files with 1 additions and 5 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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 */
} }