lkml.org 
[lkml]   [2012]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 03/11] kdb: Implement disable_nmi command
    From
    On Mon, Jul 30, 2012 at 4:58 AM, Anton Vorontsov
    <anton.vorontsov@linaro.org> wrote:
    > This command disables NMI-entry. If NMI source was previously shared with
    > a serial console ("debug port"), this effectively releases the port from
    > KDB exclusive use, and makes the console available for normal use.
    >
    > Of course, NMI can be reenabled, enable_nmi modparam is used for that:
    >
    > echo 1 > /sys/module/kdb/parameters/enable_nmi

    This is very different behavior from the FIQ debugger "console"
    command you are trying to replace. In the FIQ debugger, everything
    goes through the FIQ/NMI, even when in console mode. That means that
    the user can always get back to FIQ debugger/KDB mode using a special
    sequence (we use a break character). With your implementation, if you
    switch from KDB to console to see if the console is working, and find
    that it is not working, you can never get back into KDB.


    \
     
     \ /
      Last update: 2012-07-30 20:41    [W:2.437 / U:0.372 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site