mirror of
https://github.com/golang/go
synced 2024-11-22 08:54:39 -07:00
runtime/tiny: style and doc tweaks
R=r, rsc CC=golang-dev https://golang.org/cl/1821041
This commit is contained in:
parent
11f9c03986
commit
da795fcefc
@ -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
|
Use the built-in print(text string) function to print to the
|
||||||
console.
|
console.
|
||||||
|
|
||||||
|
|
||||||
BOCHS
|
BOCHS
|
||||||
|
|
||||||
You may have to tweak the .bochsrc depending on your system,
|
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
|
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
|
$ VBoxManage convertfromraw disk go-tiny.vdi
|
||||||
$ VirtualBox
|
$ VirtualBox
|
||||||
create a new VM; as disk use the go-tiny.vdi image.
|
create a new VM; as disk use the go-tiny.vdi image.
|
||||||
start the vm.
|
start the vm.
|
||||||
|
|
||||||
|
|
||||||
QEMU / KVM
|
QEMU / KVM
|
||||||
|
|
||||||
This should work the same for qemu and kvm (really: 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
|
$ qemu -hda disk
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,7 +59,8 @@ unlock(Lock *l)
|
|||||||
l->key = 0;
|
l->key = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void destroylock(Lock *l)
|
void
|
||||||
|
destroylock(Lock *l)
|
||||||
{
|
{
|
||||||
// nothing
|
// nothing
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user