Commit 129c6c14 authored by Daniel Theophanes's avatar Daniel Theophanes Committed by Russ Cox

runtime: finish pchw -> tiny, added gettime for tiny

R=rsc
CC=golang-dev
https://golang.org/cl/1514041
parent 3956e5a0
......@@ -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);
......
......@@ -26,8 +26,8 @@ GOFILES=\
type.go\
version.go\
GOFILES_pchw=\
pchw/io.go\
GOFILES_tiny=\
tiny/io.go\
OFILES_windows=\
syscall.$O\
......
......@@ -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
......
// 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*)
{
}
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment