summaryrefslogtreecommitdiff
path: root/libc-parts/ia32-cmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-parts/ia32-cmain.c')
-rw-r--r--libc-parts/ia32-cmain.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc-parts/ia32-cmain.c b/libc-parts/ia32-cmain.c
index 10390f6..a81a2da 100644
--- a/libc-parts/ia32-cmain.c
+++ b/libc-parts/ia32-cmain.c
@@ -26,10 +26,12 @@
#include <stdint.h>
#include <string.h>
+#ifdef USE_L4
#include <l4/globals.h>
#include <l4/init.h>
#include <l4/stubs.h>
#include <l4/stubs-init.h>
+#endif
#include <hurd/startup.h>
#include <hurd/mm.h>
@@ -58,7 +60,7 @@ finish (void)
/* We are not running on the initial stack. Free it. */
{
void *p;
- for (p = &_stack; p < &_stack_end; p += PAGESIZE)
+ for (p = &_stack; p < (void *) &_stack_end; p += PAGESIZE)
{
struct hurd_object_desc *desc;
int i;
@@ -125,8 +127,10 @@ finish (void)
void
cmain (void)
{
+#ifdef USE_L4
l4_init ();
l4_init_stubs ();
+#endif
s_printf ("In cmain\n");