* m32c/Makefile.in (m16cmon.ld, m32cmon.ld): Fix output names.

(*.o): Add dependencies.
* m32c/m32csys.h: Move syscall location to 0x400 as per Renesas
recommendations.
This commit is contained in:
DJ Delorie
2005-08-19 16:18:04 +00:00
parent babc4e5424
commit 82ef66c933
3 changed files with 40 additions and 7 deletions

View File

@ -32,12 +32,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "syscall.h"
/* Both the simulators and monitors reserve RAM areas 0x400 through
0x4ff for their internal use. We use one of those memory locations
as our system call trap. */
#define POUND #
#if defined(__r8c_cpu__) || defined(__m16c_cpu__)
#define SYSCALL(N) mov.b POUND N,r0l | ste.b r0l,0xe0000
#else
#define SYSCALL(N) mov.b POUND N,0xe0000
#endif
#define SYSCALL(N) mov.b POUND N,0x400
#define SYS__exit SYS_exit