Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
129c6c14
Commit
129c6c14
authored
Jun 07, 2010
by
Daniel Theophanes
Committed by
Russ Cox
Jun 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: finish pchw -> tiny, added gettime for tiny
R=rsc CC=golang-dev
https://golang.org/cl/1514041
parent
3956e5a0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
5 deletions
+17
-5
obj.c
src/cmd/8l/obj.c
+1
-1
Makefile
src/pkg/runtime/Makefile
+2
-2
rt0.s
src/pkg/runtime/tiny/386/rt0.s
+1
-1
signal.c
src/pkg/runtime/tiny/386/signal.c
+10
-1
README
src/pkg/runtime/tiny/README
+3
-0
No files found.
src/cmd/8l/obj.c
View file @
129c6c14
...
...
@@ -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
);
...
...
src/pkg/runtime/Makefile
View file @
129c6c14
...
...
@@ -26,8 +26,8 @@ GOFILES=\
type.go
\
version.go
\
GOFILES_
pchw
=
\
pchw
/io.go
\
GOFILES_
tiny
=
\
tiny
/io.go
\
OFILES_windows
=
\
syscall.
$O
\
...
...
src/pkg/runtime/tiny/386/rt0.s
View file @
129c6c14
...
...
@@ -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
...
...
src/pkg/runtime/tiny/386/signal.c
View file @
129c6c14
// 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
*
)
{
}
src/pkg/runtime/tiny/README
View file @
129c6c14
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment