summaryrefslogtreecommitdiff
path: root/ucoolib/arch
diff options
context:
space:
mode:
authorNicolas Schodet2012-12-22 09:22:39 +0100
committerNicolas Schodet2019-10-06 23:29:59 +0200
commit8b88776bc414ac8fc2af1ff807af5f01ecacbbf2 (patch)
tree2beec02a356f85242c5749c4fe5ae925e348e0e4 /ucoolib/arch
parentaaf5f7825212ff8219c61435f03b0518dfe9adbf (diff)
ucoolib/arch: call halt instead of infinite loop
Diffstat (limited to 'ucoolib/arch')
-rw-r--r--ucoolib/arch/syscalls.newlib.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ucoolib/arch/syscalls.newlib.cc b/ucoolib/arch/syscalls.newlib.cc
index 1c12f17..f18712c 100644
--- a/ucoolib/arch/syscalls.newlib.cc
+++ b/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. */