Subject: Re: Restartable Atomic Sequences
To: None <cgd@broadcom.com>
From: Gregory McGarry <g.mcgarry@ieee.org>
List: tech-kern
Date: 07/07/2002 13:10:44
cgd@broadcom.com wrote:

> At Thu, 4 Jul 2002 01:06:59 +0000 (UTC), "Gregory McGarry" wrote:
>
> > Anyway, if there aren't any MI uses for this, I'll just stick it
> > in the MD mips trap handler and use sysarch(2) for registration.
> 
> So, I guess the interesting question is... how exactly do you intend
> to deploy this into userland (libc) for MIPS?

What about a cross between the Mach task_ras_control() and mmap():

int ras_control(caddr_t addr, size_t size, int type)

Valid values for type (from Mach) are:

RAS_CONTROL_INSTALL_ONE
RAS_CONTROL_PURGE_ONE
RAS_CONTROL_PURGE_ALL
RAS_CONTROL_PURGE_ALL_AND_INSTALL_ONE

The semantics basically match the Mach usage.  RASs would be
inherited across a fork.

	-- Gregory McGarry <g.mcgarry@ieee.org>