]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: Add an in memory udbg console
authorAlistair Popple <alistair@popple.id.au>
Mon, 29 Apr 2013 18:07:47 +0000 (18:07 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 7 May 2013 20:36:49 +0000 (06:36 +1000)
commit30650239adc9e4e9439256d6988e521518dccbb3
tree2a4879c3742d62ea14dc3584988acbe0a10f6669
parent5737789c8340620d7b542d1d4e9b197de8eb2801
powerpc: Add an in memory udbg console

This patch adds a new udbg early debug console which utilises
statically defined input and output buffers stored within the kernel
BSS. It is primarily designed to assist with bring up of new hardware
which may not have a working console but which has a method of
reading/writing kernel memory.

This version incorporates comments made by Ben H (thanks!).

Changes from v1:
- Add memory barriers.
- Ensure updating of read/write positions is atomic.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Kconfig.debug
arch/powerpc/include/asm/udbg.h
arch/powerpc/kernel/udbg.c
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/udbg_memcons.c [new file with mode: 0644]