Subject: Re: set/getcontext problems should be fixed
To: Matthew Orgass <darkstar@city-net.com>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: port-sgimips
Date: 10/19/2005 21:24:26
This is a multipart MIME message.
--==_Exmh_2318737676670
Content-Type: text/plain; charset=us-ascii
darkstar@city-net.com said:
> mips_fputrap.c doesn't get built for softfloat
Ah yes, this needs to be fixed in some way.
Better of course to get the siginfo complete.
I just found another problem with this stuff: A little
test program trying to execute an illegal FPU instruction
panics the box. "kernel used FPU".
The panic is pmax specific, but the reason might be in
shared mips code... need to understand what happens.
best regards
Matthias
--==_Exmh_2318737676670
Content-Type: text/plain ; name="fpilltest.c"; charset=us-ascii
Content-Description: fpilltest.c
Content-Disposition: attachment; filename="fpilltest.c"
#include <sys/types.h>
#include <signal.h>
#include <stdio.h>
#include <errno.h>
#define I1 (0x11 << 26) | (1 << 25) | (9 << 21) /* 0x47200000 */
void
hdl(int s, siginfo_t *si, void *sc)
{
fprintf(stderr,"si_code=%d\n", si->si_code);
exit(1);
}
int
main()
{
int res;
struct sigaction sa;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sa.sa_sigaction = hdl;
res = sigaction(SIGILL, &sa, 0);
printf("trying %x\n", I1);
asm(".long 0x47200000");
return (0);
}
--==_Exmh_2318737676670--