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);
type.go\
version.go\
-GOFILES_pchw=\
- pchw/io.go\
+GOFILES_tiny=\
+ tiny/io.go\
OFILES_windows=\
syscall.$O\
// 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
-// 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
·write(fd, v, len, len);
return len;
}
+
+void
+gettime(int64*, int32*)
+{
+}
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.