From e090b7e5de70b36e9d9a7793161d3c34d908279a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 19 Oct 2000 15:32:20 +0000 Subject: 2000-10-19 Antti P Miettinen * rtems/score/cpu.h: define CPU_Exception_frame for rdbg. * m68302.h: Make buffer pointer in m302_SCC_bd volatile. --- c/src/exec/score/cpu/m68k/ChangeLog | 5 +++++ c/src/exec/score/cpu/m68k/m68302.h | 6 +++--- c/src/exec/score/cpu/m68k/rtems/score/cpu.h | 16 +++++++++++++--- 3 files changed, 21 insertions(+), 6 deletions(-) (limited to 'c/src/exec/score/cpu/m68k') diff --git a/c/src/exec/score/cpu/m68k/ChangeLog b/c/src/exec/score/cpu/m68k/ChangeLog index ba91f67418..74cb783c1c 100644 --- a/c/src/exec/score/cpu/m68k/ChangeLog +++ b/c/src/exec/score/cpu/m68k/ChangeLog @@ -1,3 +1,8 @@ +2000-10-19 Antti P Miettinen + + * rtems/score/cpu.h: define CPU_Exception_frame for rdbg. + * m68302.h: Make buffer pointer in m302_SCC_bd volatile. + 2000-10-12 John S Gwynne * sim.h: These changes enable RTEMS to automatically generate diff --git a/c/src/exec/score/cpu/m68k/m68302.h b/c/src/exec/score/cpu/m68k/m68302.h index 084ceac034..c4bd0a5586 100644 --- a/c/src/exec/score/cpu/m68k/m68302.h +++ b/c/src/exec/score/cpu/m68k/m68302.h @@ -275,9 +275,9 @@ typedef struct { * Section 4.5.5 */ typedef struct m302_SCC_bd { - rtems_unsigned16 status; /* status and control */ - rtems_unsigned16 length; /* data length */ - rtems_unsigned8 *buffer; /* data buffer pointer */ + rtems_unsigned16 status; /* status and control */ + rtems_unsigned16 length; /* data length */ + volatile rtems_unsigned8 *buffer; /* data buffer pointer */ } m302_SCC_bd_t; typedef struct { diff --git a/c/src/exec/score/cpu/m68k/rtems/score/cpu.h b/c/src/exec/score/cpu/m68k/rtems/score/cpu.h index a9a152cd2e..2353332620 100644 --- a/c/src/exec/score/cpu/m68k/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/m68k/rtems/score/cpu.h @@ -165,14 +165,24 @@ typedef struct { #endif /* - * The following structure defines the set of information saved - * on the current stack by RTEMS upon receipt of each interrupt. + * The following structures define the set of information saved + * on the current stack by RTEMS upon receipt of each exc/interrupt. + * These are not used by m68k handlers. + * The exception frame is for rdbg. */ typedef struct { - unsigned32 TBD; /* XXX Fix for this CPU */ + unsigned32 vecnum; /* vector number */ } CPU_Interrupt_frame; +typedef struct { + unsigned32 vecnum; /* vector number */ + unsigned32 sr; /* status register */ + unsigned32 pc; /* program counter */ + unsigned32 d0, d1, d2, d3, d4, d5, d6, d7; + unsigned32 a0, a1, a2, a3, a4, a5, a6, a7; +} CPU_Exception_frame; + /* * The following table contains the information required to configure * the m68k specific parameters. -- cgit v1.2.3