linux-stable-rt/include/asm-m32r
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
..
m32104ut
m32700ut
mappi2
mappi3
opsput
a.out.h
addrspace.h
assembler.h [PATCH] m32r: Fix pt_regs for !COFNIG_ISA_DSP_LEVEL2 target 2006-04-19 09:13:50 -07:00
atomic.h
auxvec.h
bitops.h [PATCH] bitops: m32r: use generic bitops 2006-03-26 08:57:12 -08:00
bug.h
bugs.h
byteorder.h
cache.h
cachectl.h
cacheflush.h
checksum.h
cputime.h
current.h
delay.h
div64.h
dma-mapping.h
dma.h
elf.h
emergency-restart.h
errno.h
fcntl.h
flat.h
futex.h
hardirq.h
hw_irq.h
ide.h
io.h
ioctl.h
ioctls.h
ipc.h
ipcbuf.h
irq.h
kmap_types.h
linkage.h
local.h
m32r.h
m32r_mp_fpga.h
m32102.h
mc146818rtc.h
mman.h
mmu.h
mmu_context.h
mmzone.h [PATCH] unify pfn_to_page: m32r pfn_to_page 2006-03-27 08:44:45 -08:00
module.h
msgbuf.h
mutex.h
namei.h
page.h [PATCH] unify pfn_to_page: m32r pfn_to_page 2006-03-27 08:44:45 -08:00
param.h
pci.h
percpu.h
pgalloc.h
pgtable-2level.h
pgtable.h
poll.h [PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications 2006-03-25 08:22:56 -08:00
posix_types.h
processor.h
ptrace.h [PATCH] m32r: Fix pt_regs for !COFNIG_ISA_DSP_LEVEL2 target 2006-04-19 09:13:50 -07:00
resource.h
rtc.h
s1d13806.h
scatterlist.h
sections.h
segment.h
semaphore.h [PATCH] semaphore: Remove __MUTEX_INITIALIZER() 2005-10-30 17:37:27 -08:00
sembuf.h
serial.h
setup.h [PATCH] unify PFN_* macros 2006-03-27 08:44:48 -08:00
shmbuf.h
shmparam.h
sigcontext.h [PATCH] m32r: Fix pt_regs for !COFNIG_ISA_DSP_LEVEL2 target 2006-04-19 09:13:50 -07:00
siginfo.h
signal.h
smp.h [PATCH] m32r: Fix cpu_possible_map and cpu_present_map initialization for SMP kernel 2006-04-11 06:18:34 -07:00
socket.h
sockios.h
spinlock.h
spinlock_types.h
stat.h
statfs.h
string.h
syscall.h
system.h [PATCH] Remove unused prepare_to_switch macro 2006-04-11 06:18:34 -07:00
termbits.h
termios.h
thread_info.h
timex.h
tlb.h
tlbflush.h
topology.h
types.h
uaccess.h [PATCH] m32r: security fix of {get,put}_user macros 2006-04-11 06:18:34 -07:00
ucontext.h
unaligned.h
unistd.h [PATCH] sys_kexec_load() naming fixups 2006-04-11 06:18:42 -07:00
user.h
vga.h
xor.h