linux-stable-rt/include
Hirokazu Takata 8e8ff02c0b [PATCH] m32r: Fix pt_regs for !COFNIG_ISA_DSP_LEVEL2 target
This modification is required to fix debugging function for m32r targets
with !CONFIG_ISA_DSP_LEVEL2, by unifying 'struct pt_regs' and 'struct
sigcontext' size for all M32R ISA.

Some m32r processor core with !CONFIG_ISA_DSP_LEVEL2 configuration has only
single accumulator a0 (ex.  VDEC2 core, M32102 core, etc.), the others with
CONFIG_ISA_DSP_LEVEL2 has two accumulators, a0 and a1.

This means there are two variations of thread context.  So far, we reduced
and changed stackframe size at a syscall for their context size.  However,
this causes a problem that a GDB for processors with CONFIG_ISA_DSP_LEVEL2
cannot be used for processors with !CONFIG_ISA_DSP_LEVEL2.

From the viewpoint of GDB support, we should reduce such variation of
stackframe size for simplicity.

In this patch, dummy members are added to 'struct pt_regs' and 'struct
sigcontext' to adjust their size for !CONFIG_ISA_DSP_LEVEL2.

This modification is also a one step for a GDB update in future.
Currently, on the m32r, GDB can access process's context by using ptrace
functions in a simple way of register by register access.  By unifying
stackframe size, we have a possibility to make use of ptrace functions of
not only a single register access but also block register access,
PTRACE_{GETREGS,PUTREGS}.

However, for this purpose, we might have to modify stackframe structure
some more; for example, PSW (processor status word) register should be
pre-processed before pushing to stack at a syscall, and so on.  In this
case, we must update carefully both kernel and GDB at a time...

Signed-off-by: Hayato Fujiwara <fujiwara@linux-m32r.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Cc: Kei Sakamoto <ksakamot@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-04-19 09:13:50 -07:00
..
acpi
asm-alpha
asm-arm Merge master.kernel.org:/home/rmk/linux-2.6-arm 2006-04-15 16:01:39 -07:00
asm-arm26
asm-cris
asm-frv
asm-generic
asm-h8300
asm-i386 [PATCH] asm-i386/atomic.h: local_irq_save should be used instead of local_irq_disable 2006-04-19 09:13:50 -07:00
asm-ia64 [PATCH] splice: add support for sys_tee() 2006-04-11 15:51:17 +02:00
asm-m32r [PATCH] m32r: Fix pt_regs for !COFNIG_ISA_DSP_LEVEL2 target 2006-04-19 09:13:50 -07:00
asm-m68k
asm-m68knommu
asm-mips [MIPS] Handle IDE PIO cache aliases on SMP. 2006-04-19 04:14:29 +02:00
asm-parisc
asm-powerpc Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge 2006-04-18 10:34:24 -07:00
asm-ppc
asm-s390
asm-sh
asm-sh64
asm-sparc [SPARC]: Hook up sys_tee() into syscall tables. 2006-04-14 15:29:32 -07:00
asm-sparc64 [SPARC]: Hook up sys_tee() into syscall tables. 2006-04-14 15:29:32 -07:00
asm-um
asm-v850
asm-x86_64 [PATCH] for_each_possible_cpu: x86_64 2006-04-19 09:13:49 -07:00
asm-xtensa
keys
linux [PATCH] task: Make task list manipulations RCU safe 2006-04-19 09:13:49 -07:00
math-emu
media
mtd
net [IPV6]: Clean up hop-by-hop options handler. 2006-04-18 15:57:53 -07:00
pcmcia
rdma
rxrpc
scsi [SCSI] FC transport: fixes for workq deadlocks 2006-04-13 13:25:16 -05:00
sound [ALSA] sound/core/pcm.c: make snd_pcm_format_name() static 2006-04-12 11:34:21 +02:00
video