Subject: Re: set/getcontext problems should be fixed
To: Matthew Orgass <>
From: Matthias Drochner <>
List: port-mips
Date: 10/19/2005 21:24:26
This is a multipart MIME message.

Content-Type: text/plain; charset=us-ascii 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

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

hdl(int s, siginfo_t *si, void *sc)

	fprintf(stderr,"si_code=%d\n", si->si_code);

	int res;
	struct sigaction sa;

	sa.sa_flags = 0;
	sa.sa_sigaction = hdl;
	res = sigaction(SIGILL, &sa, 0);

	printf("trying %x\n", I1);
	asm(".long 0x47200000");

	return (0);