From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B2FD8DDED9 for ; Mon, 23 Feb 2009 14:52:04 +1100 (EST) Subject: Re: [RFC/PATCH] powerpc: provide APIs for validating and updating DABR From: Benjamin Herrenschmidt To: Nathan Lynch In-Reply-To: <20090217125122.5bbf713b@thinkcentre.lan> References: <20090217125122.5bbf713b@thinkcentre.lan> Content-Type: text/plain Date: Mon, 23 Feb 2009 14:51:58 +1100 Message-Id: <1235361118.8805.225.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > +/* for reprogramming DABR/DAC during restart of a checkpointed task */ > +extern bool debugreg_valid(unsigned long val); > +extern void debugreg_update(struct task_struct *task, unsigned long val); > + Please keep the "index" here. We may want to add support for IABR, and there is some WIP to add support for multiple DACs and IACs on BookE processors. Cheers, Ben.