summaryrefslogtreecommitdiffhomepage
path: root/digital/ucoolib/ucoolib/arch/syscalls.newlib.cc
diff options
context:
space:
mode:
authorNicolas Schodet2012-12-22 09:22:39 +0100
committerNicolas Schodet2012-12-23 12:42:25 +0100
commit570345e49b5e1c0d4eb2bd9495c9a39de5a58b75 (patch)
tree38fba4ac4ead3109e9943504d2de28a501e071ed /digital/ucoolib/ucoolib/arch/syscalls.newlib.cc
parent1f29aff77b6bbda0fecc636c8e33dcc2deab664e (diff)
digital/ucoolib/ucoolib/arch: call halt instead of infinite loop
Diffstat (limited to 'digital/ucoolib/ucoolib/arch/syscalls.newlib.cc')
-rw-r--r--digital/ucoolib/ucoolib/arch/syscalls.newlib.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/digital/ucoolib/ucoolib/arch/syscalls.newlib.cc b/digital/ucoolib/ucoolib/arch/syscalls.newlib.cc
index 1c12f177..f18712cc 100644
--- a/digital/ucoolib/ucoolib/arch/syscalls.newlib.cc
+++ b/digital/ucoolib/ucoolib/arch/syscalls.newlib.cc
@@ -21,6 +21,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* }}} */
+#include "ucoolib/common.hh"
+
#include <reent.h>
#include <sys/stat.h>
#include <errno.h>
@@ -36,8 +38,7 @@ void *__dso_handle = (void*) &__dso_handle;
extern "C" void
__cxa_pure_virtual (void)
{
- while (1)
- ;
+ ucoo::halt ();
}
/** Increase program data space. */
@@ -58,8 +59,7 @@ _sbrk_r (struct _reent *ptr, int incr)
extern "C" void
_exit (int n)
{
- while (1)
- ;
+ ucoo::halt ();
}
/** Close a file, unimplemented. */