From: Keir Fraser Subject: Re: [PATCH] cdb: split cdb into arch independet/dependet part Date: Fri, 13 Jan 2006 16:20:01 +0000 Message-ID: References: <20060110073119.GG9291@valinux.co.jp> <07309113807ccf40f440881519bb6872@us.ibm.com> <20060111085640.GB26980@valinux.co.jp> <68037db070bd4ae1b51fa17639f17e6e@cl.cam.ac.uk> <20060113112815.GD28858@valinux.co.jp> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Hollis Blanchard Cc: Isaku Yamahata , xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 13 Jan 2006, at 15:46, Hollis Blanchard wrote: >> + /* Try to make things a little more stable by disabling >> + interrupts while we're here. */ >> + local_irq_save(flags); > ... >> + local_irq_restore(flags); > > Shouldn't we enter __trap_to_gdb with interrupts disabled already? > That's how it's done on PPC, I believe x86 can choose in the IDT, and > I'm sure IA64 can too? That's true if it's a hardware-generated trap to debugger. Breakpoint exceptions, manual calls to trap into the debugger, etc all might enter the stub with ints enabled. So irqsave/restore is a reasonable safeguard. > Hmm, actually, how does this interact with interrupt-driven ns16550? The serial subsystem supports a synchronous polled mode of operation. You can put a COM port in polled mode by calling serial_start_sync(). -- Keir