[lkml]   [2001]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: How should nano_sleep be fixed (was: ptrace(), fork(), sleep(), exit(), SIGCHLD)
On Fri, Aug 17, 2001 at 11:25:42AM -0700, george anzinger wrote:
> >
> How about something like:
> In ../asm/signal.h (for i386)
> #define PT_REGS_ENTRY(type,name,p1_type,p1, p2_type,p2) \
> type name(p1_type p1,p2_typ p2)\
> { struct pt_regs *regs = (struct pt_regs *)&p1;

In RTLinux we define MACHDEPREGS as an arch dependent type. PPC defines
this as a pointer and x87 as the structure etc. The small number of functions
that actually need to manipulate this can be made machine dependent too.
Came in handy during the port to BSD too.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.501 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site