]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: finish pchw -> tiny, added gettime for tiny
authorDaniel Theophanes <kardianos@gmail.com>
Mon, 7 Jun 2010 21:18:42 +0000 (14:18 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 7 Jun 2010 21:18:42 +0000 (14:18 -0700)
R=rsc
CC=golang-dev
https://golang.org/cl/1514041

src/cmd/8l/obj.c
src/pkg/runtime/Makefile
src/pkg/runtime/tiny/386/rt0.s
src/pkg/runtime/tiny/386/signal.c
src/pkg/runtime/tiny/README

index c4732b6681f5ad4d966c15792a1da955bb77fbe0..7f99173796893218226e69b995d4c659718fd774 100644 (file)
@@ -171,7 +171,7 @@ main(int argc, char *argv[])
                if(strcmp(goos, "windows") == 0)
                        HEADTYPE = 10;
                else
-               if(strcmp(goos, "pchw") == 0)
+               if(strcmp(goos, "tiny") == 0)
                        HEADTYPE = 11;
                else
                        print("goos is not known: %s\n", goos);
index 881f15a1a1ac2845056cb1bd6718374ae648ec74..0d5de29b33d0d6278fdee32221ef749043d6e4d1 100644 (file)
@@ -26,8 +26,8 @@ GOFILES=\
        type.go\
        version.go\
 
-GOFILES_pchw=\
-       pchw/io.go\
+GOFILES_tiny=\
+       tiny/io.go\
 
 OFILES_windows=\
        syscall.$O\
index d03fc2d7a2bdf58cf698f9a380e915ca3a26d7be..ff7aae7acc3d7c65f072d124a2a54b29771e5304 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-TEXT _rt0_386_pchw(SB), 7, $0
+TEXT _rt0_386_tiny(SB), 7, $0
        // Disable interrupts.
        CLI
        
index a39a481cc20436f953a50fdcffcd2c6235793d98..de06ba8db507272b8d08a1c55d8538e026f470bd 100644 (file)
@@ -1,4 +1,8 @@
-// just the write function
+// Copyright 2010 The Go Authors.  All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file. 
+
+#include "runtime.h"
 
 extern void ·write(int32 fd, void *v, int32 len, int32 cap);  // slice, spelled out
 
@@ -8,3 +12,8 @@ write(int32 fd, void *v, int32 len)
        ·write(fd, v, len, len);
        return len;
 }
+
+void
+gettime(int64*, int32*) 
+{
+}
index 1a39e4251e965dd9387d9b2454ee29fafb7b90a5..bbe00f3eaa6215cb1788b09f3d5168300fb4dc7f 100755 (executable)
@@ -24,6 +24,9 @@ and GOOS set to your normal GOOS (linux, darwin).  Then:
        cat bootblock 8.out | dd of=disk conv=notrunc
        bochs
 
+Use the built-in print(text string) function to print to the
+console.
+
 You may have to tweak the .bochsrc depending on your system,
 and you may need to install the Bochs emulator.