Commit 2b4a9fa1 authored by Russ Cox's avatar Russ Cox

fix NaCl build for latest runtime changes

R=iant
CC=golang-dev
https://golang.org/cl/206052
parent de90a7d4
......@@ -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
......
......@@ -87,6 +87,10 @@ unlock(Lock *l)
xunlock(l->sema>>1);
}
void
destroylock(Lock *l)
{
}
// One-time notifications.
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment