Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
08a1631c
Commit
08a1631c
authored
Mar 01, 2013
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: fix build on openbsd, plan9
R=golang-dev CC=golang-dev
https://golang.org/cl/7438052
parent
2202663a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/pkg/runtime/thread_openbsd.c
src/pkg/runtime/thread_openbsd.c
+2
-2
src/pkg/runtime/thread_plan9.c
src/pkg/runtime/thread_plan9.c
+2
-2
No files found.
src/pkg/runtime/thread_openbsd.c
View file @
08a1631c
...
...
@@ -131,8 +131,8 @@ runtime·newosproc(M *mp, void *stk)
if
(
0
)
{
runtime
·
printf
(
"newosproc stk=%p m=%p g=%p
fn=%p
id=%d/%d ostk=%p
\n
"
,
stk
,
mp
,
mp
->
g0
,
fn
,
mp
->
id
,
(
int32
)
mp
->
tls
[
0
],
&
mp
);
"newosproc stk=%p m=%p g=%p id=%d/%d ostk=%p
\n
"
,
stk
,
mp
,
mp
->
g0
,
mp
->
id
,
(
int32
)
mp
->
tls
[
0
],
&
mp
);
}
mp
->
tls
[
0
]
=
mp
->
id
;
// so 386 asm can find it
...
...
src/pkg/runtime/thread_plan9.c
View file @
08a1631c
...
...
@@ -227,8 +227,8 @@ runtime·newosproc(M *mp, void *stk)
{
mp
->
tls
[
0
]
=
mp
->
id
;
// so 386 asm can find it
if
(
0
){
runtime
·
printf
(
"newosproc stk=%p m=%p g=%p
fn=%p
rfork=%p id=%d/%d ostk=%p
\n
"
,
stk
,
mp
,
mp
->
g0
,
fn
,
runtime
·
rfork
,
mp
->
id
,
(
int32
)
mp
->
tls
[
0
],
&
mp
);
runtime
·
printf
(
"newosproc stk=%p m=%p g=%p rfork=%p id=%d/%d ostk=%p
\n
"
,
stk
,
mp
,
mp
->
g0
,
runtime
·
rfork
,
mp
->
id
,
(
int32
)
mp
->
tls
[
0
],
&
mp
);
}
if
(
runtime
·
rfork
(
RFPROC
|
RFMEM
|
RFNOWAIT
,
stk
,
mp
,
mp
->
g0
,
runtime
·
mstart
)
<
0
)
...
...
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