mirror of
https://github.com/golang/go
synced 2024-11-25 06:07:58 -07:00
fix NaCl build for latest runtime changes
R=iant CC=golang-dev https://golang.org/cl/206052
This commit is contained in:
parent
de90a7d4aa
commit
2b4a9fa176
@ -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.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user