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
2b4a9fa1
Commit
2b4a9fa1
authored
Feb 10, 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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
sys.s
src/pkg/runtime/nacl/386/sys.s
+17
-0
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 @@
...
@@ -19,6 +19,7 @@
#define SYS_mutex_create 70
#define SYS_mutex_create 70
#define SYS_mutex_lock 71
#define SYS_mutex_lock 71
#define SYS_mutex_unlock 73
#define SYS_mutex_unlock 73
#define SYS_gettimeofday 40
#define SYSCALL(x) $(0x10000+SYS_/**/x * 32)
#define SYSCALL(x) $(0x10000+SYS_/**/x * 32)
...
@@ -79,6 +80,22 @@ TEXT ·mmap(SB),7,$24
...
@@ -79,6 +80,22 @@ TEXT ·mmap(SB),7,$24
INT $3
INT $3
RET
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)
// setldt(int entry, int address, int limit)
TEXT setldt(SB),7,$32
TEXT setldt(SB),7,$32
// entry is ignored - nacl tells us the
// entry is ignored - nacl tells us the
...
...
src/pkg/runtime/nacl/thread.c
View file @
2b4a9fa1
...
@@ -87,6 +87,10 @@ unlock(Lock *l)
...
@@ -87,6 +87,10 @@ unlock(Lock *l)
xunlock
(
l
->
sema
>>
1
);
xunlock
(
l
->
sema
>>
1
);
}
}
void
destroylock
(
Lock
*
l
)
{
}
// One-time notifications.
// 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