08 Jun, 2015

1 commit

  • Warnings found by sparse:
    arch/microblaze/kernel/dma.c:157:5: warning: symbol
    'dma_direct_mmap_coherent' was not declared. Should it be static?
    arch/microblaze/kernel/kgdb.c:35:14: warning: symbol 'pvr' was not
    declared. Should it be static?

    Signed-off-by: Michal Simek

    Michal Simek
     

05 Jan, 2015

2 commits

  • This patch removes warnings reported by W=1:
    arch/microblaze/kernel/kgdb.c: In function 'pt_regs_to_gdb_regs':
    arch/microblaze/kernel/kgdb.c:43:16: warning: comparison between signed
    and unsigned integer expressions [-Wsign-compare]
    arch/microblaze/kernel/kgdb.c:51:16: warning: comparison between signed
    and unsigned integer expressions [-Wsign-compare]
    arch/microblaze/kernel/kgdb.c: In function 'gdb_regs_to_pt_regs':
    arch/microblaze/kernel/kgdb.c:77:16: warning: comparison between signed
    and unsigned integer expressions [-Wsign-compare]
    arch/microblaze/kernel/kgdb.c: In function
    'sleeping_thread_to_gdb_regs':
    arch/microblaze/kernel/kgdb.c:99:16: warning: comparison between signed
    and unsigned integer expressions [-Wsign-compare]
    arch/microblaze/kernel/kgdb.c:103:16: warning: comparison between signed
    and unsigned integer expressions [-Wsign-compare]

    Signed-off-by: Michal Simek

    Michal Simek
     
  • This patch removes the warning:
    arch/microblaze/kernel/kgdb.c:81:6: warning: no previous prototype for
    'microblaze_kgdb_break' [-Wmissing-prototypes]

    Signed-off-by: Michal Simek

    Michal Simek
     

26 Jun, 2013

1 commit

  • Other architectures don't do it, and it conflicts with the extern'd definition
    in include/linux/kgdb.h.

    The patch fails checkpatch but it reflects current
    functions declaration and solved compilation error.

    Signed-off-by: Graeme Smecher
    CC: Michal Simek
    CC: linux-kernel@vger.kernel.org
    Signed-off-by: Michal Simek

    Graeme Smecher
     

12 Feb, 2013

1 commit


21 Oct, 2010

2 commits


04 Aug, 2010

1 commit

  • Kgdb uses brki r16, 0x18 instruction to call
    low level _debug_exception function which save
    current state to pt_regs and call microblaze_kgdb_break
    function. _debug_exception should be called only from
    the kernel space. User space calling is not supported
    because user application debugging uses different handling.

    pt_regs_to_gdb_regs loads additional special registers
    which can't be changed

    * Enable KGDB in Kconfig
    * Remove ancient not-tested KGDB support
    * Remove ancient _debug_exception code from entry.S

    Only MMU KGDB support is supported.

    Signed-off-by: Michal Simek
    CC: Jason Wessel
    CC: John Williams
    CC: Edgar E. Iglesias
    CC: linux-kernel@vger.kernel.org
    Acked-by: Jason Wessel

    Michal Simek