thanks for fixing these problems.  i was espcially amused by the
code that was if (copyout() || copyout() || suword()).

> Modified Files:
>       src/sys/arch/sparc64/sparc64: machdep.c netbsd32_machdep.c
>           sunos_machdep.c
> 
> Log Message:
> remove all MD uses of suword(), replace by copyout()

hmm..

+       sp = (register32_t)(uintptr_t)oldsp;

there are macros for doing this, aren't there?

i have an uncommited patch for netbsd32 that adds checks to ensure
that any such "truncation" actually doesn't modify the value if
DIAGNOSTIC, and it should apply to the above, but it's really hard
to find the above in other code...

thanks.


.mrg.

Reply via email to