* cris/crt0.S: Use jump, not ba, to skip the interrupt table. Use

"setf", not "nop", for common_v10_v32 compatibility.
	Move out interrupt table to irqtable.S.  Include here for non-ELF.
	* cris/irqtable.S: Extracted from cris/crt0.S.  Provide per-entry
	weak default stub definitions.
	* cris/crtn.c: Use "setf", not "nop", for common_v10_v32
	compatibility.
	* cris/setup.S [__arch_common_v10_v32]: Return.
	* cris/Makefile.in (BSP_OBJS): Add irqtable.o.
This commit is contained in:
Hans-Peter Nilsson
2007-02-21 14:08:26 +00:00
parent 547c5c6104
commit 0bb4152b76
6 changed files with 124 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
/* Support for standalone CRIS/CRISv32 code.
Copyright (C) 2005 Axis Communications.
Copyright (C) 2005, 2007 Axis Communications.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -32,8 +32,11 @@ __setup:
/* Make sure to save SRP. */
#ifdef __arch_common_v10_v32
/* Can't do anything if we don't know for which arch. This file is
then only a placeholder. Oh, and we can't use the "ret" insn in
"common" code. */
then only a placeholder. Oh, and we can't use the "ret" and "nop"
insns in "common" code. */
move $srp,$r9
jump $r9
setf
#else
/* Code missing:
- Initialize RAM circuits.