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
2b4a9fa1
Commit
2b4a9fa1
authored
Feb 09, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix NaCl build for latest runtime changes
R=iant CC=golang-dev
https://golang.org/cl/206052
parent
de90a7d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
src/pkg/runtime/nacl/386/sys.s
src/pkg/runtime/nacl/386/sys.s
+17
-0
src/pkg/runtime/nacl/thread.c
src/pkg/runtime/nacl/thread.c
+4
-0
No files found.
src/pkg/runtime/nacl/386/sys.s
View file @
2b4a9fa1
...
...
@@ -19,6 +19,7 @@
#define SYS_mutex_create 70
#define SYS_mutex_lock 71
#define SYS_mutex_unlock 73
#define SYS_gettimeofday 40
#define SYSCALL(x) $(0x10000+SYS_/**/x * 32)
...
...
@@ -79,6 +80,22 @@ TEXT ·mmap(SB),7,$24
INT
$
3
RET
TEXT
gettime
(
SB
),7,$32
LEAL
8
(
SP
),
BX
MOVL
BX
,
0
(
SP
)
MOVL
$
0
,
4
(
SP
)
CALL
SYSCALL
(
gettimeofday
)
MOVL
8
(
SP
),
BX
//
sec
MOVL
sec
+
0
(
FP
),
DI
MOVL
BX
,
(
DI
)
MOVL
$
0
,
4
(
DI
)
//
zero
extend
32
->
64
bits
MOVL
12
(
SP
),
BX
//
usec
MOVL
usec
+
4
(
FP
),
DI
MOVL
BX
,
(
DI
)
RET
//
setldt
(
int
entry
,
int
address
,
int
limit
)
TEXT
setldt
(
SB
),7,$32
//
entry
is
ignored
-
nacl
tells
us
the
...
...
src/pkg/runtime/nacl/thread.c
View file @
2b4a9fa1
...
...
@@ -87,6 +87,10 @@ unlock(Lock *l)
xunlock
(
l
->
sema
>>
1
);
}
void
destroylock
(
Lock
*
l
)
{
}
// One-time notifications.
//
...
...
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