sys/luna68k/luna68k/kgdb_stub.c
/*
 * There is a short pad word between SP (A7) and SR which keeps the
 * kernel stack long word aligned (note that this is in addition to
 * the stack adjust short that we treat as the upper half of a longword
 * SR).  We must skip this when copying into and out of gdb.
 */
There is a short pad word between SP (A7) and SR which keeps the
kernel stack long word aligned (note that this is in addition to
the stack adjust short that we treat as the upper half of a longword
SR).  We must skip this when copying into and out of gdb.
There is a short pad word between SP ( A7 ) and SR which keeps the kernel stack long word aligned ( note that this is in addition to the stack adjust short that we treat as the upper half of a longword SR ) . We must skip this when copying into and out of gdb .
static inline void
regs_to_gdb(struct frame *fp, u_long *regs)
{
	kgdb_copy((u_char *)fp->f_regs, (u_char *)regs, 16*4);
	kgdb_copy((u_char *)&fp->f_stackadj, (u_char *)&regs[GDB_SR], 2*4);
}
static inline void regs_to_gdb ( struct frame * fp , u_long * regs ) { kgdb_copy ( ( u_char * ) fp -> f_regs , ( u_char * ) regs , 16 * 4 ) ; kgdb_copy ( ( u_char * ) & fp -> f_stackadj , ( u_char * ) & regs [ GDB_SR ] , 2 * 4 ) ; }
There is a short pad word between SP (A7) and SR which keeps the
 kernel stack long word aligned (note that this is in addition to
 the stack adjust short that we treat as the upper half of a longword
 SR).
There is a short pad word between SP ( A7 ) and SR which keeps the kernel stack long word aligned ( note that this is in addition to the stack adjust short that we treat as the upper half of a longword SR ) .