aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-07-13 10:47:52 +1000
committerAndrew Gerrand <adg@golang.org>2010-07-13 10:47:52 +1000
commitda795fcefcbb5c401427d9b6424a664c1ec551ec (patch)
treeab51188af24cd3f6df1420bf4bc0502412aecf4c
parent11f9c0398655e6ac349517792c0cad7ce69721f4 (diff)
downloadgo-da795fcefcbb5c401427d9b6424a664c1ec551ec.tar.gz
go-da795fcefcbb5c401427d9b6424a664c1ec551ec.zip
runtime/tiny: style and doc tweaks
R=r, rsc CC=golang-dev https://golang.org/cl/1821041
-rwxr-xr-xsrc/pkg/runtime/tiny/README10
-rw-r--r--src/pkg/runtime/tiny/thread.c3
2 files changed, 9 insertions, 4 deletions
diff --git a/src/pkg/runtime/tiny/README b/src/pkg/runtime/tiny/README
index 42e730d8f5..cf001d1e69 100755
--- a/src/pkg/runtime/tiny/README
+++ b/src/pkg/runtime/tiny/README
@@ -25,6 +25,7 @@ and GOOS set to your normal GOOS (linux, darwin). Then:
Use the built-in print(text string) function to print to the
console.
+
BOCHS
You may have to tweak the .bochsrc depending on your system,
@@ -37,19 +38,22 @@ and you may need to install the Bochs emulator.
ORACLE xVM VIRTUALBOX
-Get VirtualBox installed, and the do:
+Install VirtualBox. Then:
+
+ Build 'disk' (described above under '386').
- ... build 'disk', described above
$ VBoxManage convertfromraw disk go-tiny.vdi
$ VirtualBox
create a new VM; as disk use the go-tiny.vdi image.
start the vm.
+
QEMU / KVM
This should work the same for qemu and kvm (really: qemu-kvm).
- ... build 'disk', described above
+ Build 'disk' (described above under '386').
+
$ qemu -hda disk
diff --git a/src/pkg/runtime/tiny/thread.c b/src/pkg/runtime/tiny/thread.c
index e62953128b..17d4d9f3eb 100644
--- a/src/pkg/runtime/tiny/thread.c
+++ b/src/pkg/runtime/tiny/thread.c
@@ -59,7 +59,8 @@ unlock(Lock *l)
l->key = 0;
}
-void destroylock(Lock *l)
+void
+destroylock(Lock *l)
{
// nothing
}