forked from Imagelibrary/rtems
Merged patch from David Fiddes <D.J.Fiddes@hw.ac.uk> to add ColdFire
specific register macros and correct code in rtems.s.
This commit is contained in:
@@ -88,7 +88,15 @@
|
||||
#define sr REG (sr)
|
||||
#define vbr REG (vbr)
|
||||
#define dfc REG (dfc)
|
||||
#define sfc REG(sfc)
|
||||
#define sfc REG (sfc)
|
||||
|
||||
/* mcf52xx special regs */
|
||||
#define cacr REG (cacr)
|
||||
#define acr0 REG (acr0)
|
||||
#define acr1 REG (acr1)
|
||||
#define rambar0 REG (rambar0)
|
||||
#define mbar REG (mbar)
|
||||
|
||||
|
||||
#define fp0 REG (fp0)
|
||||
#define fp1 REG (fp1)
|
||||
|
||||
@@ -39,8 +39,14 @@ SYM (RTEMS):
|
||||
moveal SYM (_Entry_points), a0
|
||||
lsll #2, d0
|
||||
addal d0, a0
|
||||
|
||||
#if (M68K_COLDFIRE_ARCH == 0)
|
||||
moveal @(a0),a0
|
||||
jmpl @(a0)
|
||||
#else
|
||||
moveal (a0),a0
|
||||
jmpl (a0)
|
||||
#endif
|
||||
|
||||
END_CODE
|
||||
END
|
||||
|
||||
@@ -88,7 +88,15 @@
|
||||
#define sr REG (sr)
|
||||
#define vbr REG (vbr)
|
||||
#define dfc REG (dfc)
|
||||
#define sfc REG(sfc)
|
||||
#define sfc REG (sfc)
|
||||
|
||||
/* mcf52xx special regs */
|
||||
#define cacr REG (cacr)
|
||||
#define acr0 REG (acr0)
|
||||
#define acr1 REG (acr1)
|
||||
#define rambar0 REG (rambar0)
|
||||
#define mbar REG (mbar)
|
||||
|
||||
|
||||
#define fp0 REG (fp0)
|
||||
#define fp1 REG (fp1)
|
||||
|
||||
@@ -88,7 +88,15 @@
|
||||
#define sr REG (sr)
|
||||
#define vbr REG (vbr)
|
||||
#define dfc REG (dfc)
|
||||
#define sfc REG(sfc)
|
||||
#define sfc REG (sfc)
|
||||
|
||||
/* mcf52xx special regs */
|
||||
#define cacr REG (cacr)
|
||||
#define acr0 REG (acr0)
|
||||
#define acr1 REG (acr1)
|
||||
#define rambar0 REG (rambar0)
|
||||
#define mbar REG (mbar)
|
||||
|
||||
|
||||
#define fp0 REG (fp0)
|
||||
#define fp1 REG (fp1)
|
||||
|
||||
Reference in New Issue
Block a user