kdb
[Top] [All Lists]

Re: KDB_ENTER & interrupt level

To: sbytnar@xxxxxxx (Steven Bytnar)
Subject: Re: KDB_ENTER & interrupt level
From: slurn@xxxxxxxxxxxx
Date: Thu, 28 Feb 2002 10:59:00 -0800 (PST)
Cc: kdb@xxxxxxxxxxx
In-reply-to: <20020228113550.G15221@xxxxxxx> from "Steven Bytnar" at Feb 28, 2002 11:35:50 AM
Sender: owner-kdb@xxxxxxxxxxx
> 
> There's a comment in asm-i386/kdb.h regarding KDB_ENTER that says:
> 
> "If it is intended to be used from interrupt level, it must
> use a non-maskable entry method."

This is because if KDB_ENTER is implemented using a mechanism
that can be masked by interrupt-level code, the KDB_ENTER would
be ignored during interrupt processing. 

> 
> Is that describing a kernel developer's view of using KDB_ENTER, or
> is this describing how someone should implement it for other
> architectures?

Porting. 

> In other words, if I want to call KDB_ENTER from an arbitrary kernel
> module at interrupt level, do I need to take special precautions? Or
> was the comment aimed at people porting KDB to other architectures?

Correct, it is aimed at people porting KDB to other architectures.

scott
> 
> Thanks,
> --Steve
> 
> Software Technologies Group, Inc.
> http://www.stg.com
> 


<Prev in Thread] Current Thread [Next in Thread>