]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/bootstrap/server/src/libc_support+.cc
update
[l4.git] / l4 / pkg / bootstrap / server / src / libc_support+.cc
index 4420338220c0371f5e06c5d0185a30b718992041..e98974a573b599d45faa6f9cb5f04443aefcc446 100644 (file)
@@ -7,7 +7,9 @@
  *             Frank Mehnert <fm3@os.inf.tu-dresden.de> */
 
 /*
- * (c) 2005-2009 Technische Universität Dresden
+ * (c) 2005-2009 Author(s)
+ *     economic rights: Technische Universität Dresden (Germany)
+ *
  * This file is part of TUD:OS and distributed under the terms of the
  * GNU General Public License 2.
  * Please see the COPYING-GPL-2 file for details.
@@ -170,6 +172,20 @@ void __main(unsigned long p1, unsigned long p2, unsigned long p3, unsigned long
 }
 #endif
 
+
+#if defined(ARCH_sparc)
+extern "C" void __main(unsigned long p1, unsigned long p2, unsigned long p3);
+void __main(unsigned long p1, unsigned long p2, unsigned long p3)
+{
+       (void)p1;
+       (void)p2;
+       (void)p3;
+       ctor_init();
+       Platform_base::iterate_platforms();
+       // startup(0,0,0,0);
+}
+#endif
+
 void exit(int c) throw()
 {
   _exit(c);
@@ -224,7 +240,7 @@ getchar(void)
   return c;
 }
 
-off64_t lseek64(int /*fd*/, off64_t /*offset*/, int /*whence*/)
+off_t lseek(int /*fd*/, off_t /*offset*/, int /*whence*/)
 {
   return 0;
 }