lkml.org 
[lkml]   [2008]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] kgdb: more barrier in blank weak function

    Impact: fix panic possible panic etc

    some compiler seems to inline the weak global function if no line in it

    Signed-off-by: Yinghai Lu <yinghai@kernel.org>

    diff --git a/kernel/kgdb.c b/kernel/kgdb.c
    index e4dcfb2..70d2e36 100644
    --- a/kernel/kgdb.c
    +++ b/kernel/kgdb.c
    @@ -223,7 +223,7 @@ int __weak kgdb_skipexception(int exception, struct pt_regs *regs)
    void __weak
    kgdb_post_primary_code(struct pt_regs *regs, int e_vector, int err_code)
    {
    - return;
    + barrier();
    }

    /**
    @@ -236,6 +236,7 @@ kgdb_post_primary_code(struct pt_regs *regs, int e_vector, int err_code)
    */
    void __weak kgdb_disable_hw_debug(struct pt_regs *regs)
    {
    + barrier();
    }

    /*

    \
     
     \ /
      Last update: 2008-12-27 06:11    [W:0.020 / U:88.956 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site