Added some missing CVS headers and did a bit of cleaning up.
authordtrg <none@none>
Tue, 20 Feb 2007 00:31:54 +0000 (00:31 +0000)
committerdtrg <none@none>
Tue, 20 Feb 2007 00:31:54 +0000 (00:31 +0000)
15 files changed:
plat/pc86/README
plat/pc86/boot.s
plat/pc86/descr
plat/pc86/libsys/_brk.s
plat/pc86/libsys/_mon.s
plat/pc86/libsys/_sbrk.c [deleted file]
plat/pc86/libsys/_sys_ioctl.c
plat/pc86/libsys/_sys_rawread.s
plat/pc86/libsys/_sys_rawwrite.s
plat/pc86/libsys/_sys_read.c
plat/pc86/libsys/_sys_write.c
plat/pc86/libsys/errno.s
plat/pc86/libsys/libsys.h
plat/pc86/libsys/pmfile
plat/pc86/pmfile

index b4a02db..02b1b34 100644 (file)
@@ -1,5 +1,6 @@
 # $Source$
 # $State$
+# $Revision$
 
 The pc86 platform
 =================
index 61713f2..139a2f1 100644 (file)
@@ -1,6 +1,7 @@
 #
 ! $Source$
 ! $State$
+! $Revision$
 
 ! Declare segments (the order is important).
 
index 1b6e728..9427ee3 100644 (file)
@@ -1,4 +1,7 @@
+# $Source$
+# $State$
 # $Revision$
+
 var w=2
 var p=2
 var s=2
index dffc06e..c2d9dc3 100644 (file)
@@ -1,6 +1,7 @@
 #
 ! $Source$
 ! $State$
+! $Revision$
 
 ! Declare segments (the order is important).
 
index e998f92..50babdc 100644 (file)
@@ -1,6 +1,7 @@
 #
 ! $Source$
 ! $State$
+! $Revision$
 
 ! Declare segments (the order is important).
 
diff --git a/plat/pc86/libsys/_sbrk.c b/plat/pc86/libsys/_sbrk.c
deleted file mode 100644 (file)
index f189626..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/* There should be a header for brk and sbrk, but there isn't. */
-
-#include <stdlib.h>
-#include <errno.h>
-/* #include <unistd.h> */
-
-extern char _end[];
-static char* brkpointer = _end;
-
-static void prints(char* s)
-{
-       for (;;)
-       {
-               char c = *s++;
-               if (!c)
-                       break;
-               write(0, &c, 1);
-       }
-}
-
-static void printc(unsigned int n)
-{
-       char c;
-       
-       n &= 0xF;
-       if (n < 10)
-               c = n + '0';
-       else
-               c = n + 'A' - 10;
-       
-       write(0, &c, 1);
-}
-
-static void printh(unsigned int n)
-{
-       printc(n>>12);
-       printc(n>>8);
-       printc(n>>4);
-       printc(n);
-}
-static void waitforkey(void)
-{
-       char c;
-       read(1, &c, 1);
-}
-
-int _brk(char* newend)
-{
-       char dummy;
-       
-       /* Ensure that newend is reasonable. */
-       
-       if ((newend < _end) || (newend > (&dummy - 256)))
-       {
-               prints("[brk to ");
-               printh((unsigned int) newend);
-               prints(" failed]\n\r");
-               waitforkey();
-               errno = ENOMEM;
-               return -1;
-       }
-       
-       prints("[brk to ");
-       printh((unsigned int) newend);
-       prints("]\n\r");
-       waitforkey();
-       brkpointer = newend;
-       return 0;
-}
-
-char* _sbrk(int delta)
-{
-       char* oldpointer = brkpointer;
-       prints("[sbrk delta ");
-       printh((unsigned int) delta);
-       prints(" from ");
-       printh((unsigned int) oldpointer);
-       prints("]\n\r");
-       printh((unsigned int) brkpointer);
-       prints(" ");
-       printh((unsigned int) _end);
-       if (_brk(oldpointer + delta) == -1)
-               return (char*)-1;
-       
-       return oldpointer;
-}
index c35e3c2..237ace7 100644 (file)
@@ -1,3 +1,7 @@
+/* $Source$
+ * $State$
+ */
+
 #include <stdlib.h>
 #include <errno.h>
 #include <sgtty.h>
index bf933b4..480727b 100644 (file)
@@ -1,6 +1,7 @@
 #
 ! $Source$
 ! $State$
+! $Revision$
 
 ! Declare segments (the order is important).
 
index 1193ed8..75f75aa 100644 (file)
@@ -1,6 +1,7 @@
 #
 ! $Source$
 ! $State$
+! $Revision$
 
 ! Declare segments (the order is important).
 
index cc1a1e5..e56e793 100644 (file)
@@ -1,3 +1,8 @@
+/* $Source$
+ * $State$
+ * $Revision$
+ */
+
 #include <stdlib.h>
 #include <errno.h>
 #include <sgtty.h>
index da64d46..5efb1b4 100644 (file)
@@ -1,3 +1,8 @@
+/* $Source$
+ * $State$
+ * $Revision$
+ */
+
 #include <stdlib.h>
 #include <errno.h>
 #include <sgtty.h>
index 8392154..21f7fab 100644 (file)
@@ -1,6 +1,7 @@
 #
 ! $Source$
 ! $State$
+! $Revision$
 
 ! Declare segments (the order is important).
 
index 75ccf5c..736f19e 100644 (file)
@@ -1,3 +1,8 @@
+/* $Source$
+ * $State$
+ * $Revision$
+ */
+
 #ifndef LIBSYS_H
 #define LIBSYS_H
 
index 456d4b1..82dcd74 100644 (file)
@@ -1,5 +1,6 @@
 -- $Source$
 -- $State$
+-- $Revision$
 
 local d = ROOTDIR.."plat/pc86/libsys/"
 
index 4ff0e88..54c895d 100644 (file)
@@ -1,5 +1,6 @@
 -- $Source$
 -- $State$
+-- $Revision$
 
 local d = ROOTDIR.."plat/pc86/"