diff options
| author | Russ Cox <rsc@golang.org> | 2009-09-22 16:28:32 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-09-22 16:28:32 -0700 |
| commit | 1b14bdbf1ccec3e1aee176327988ad6b9d5e329c (patch) | |
| tree | 901714cd753425b49cd353055bffac9af4996f73 /src/pkg/runtime/linux | |
| parent | 9e7f3a46d3682c3206202e3421d5034193feb2f7 (diff) | |
| download | go-1b14bdbf1ccec3e1aee176327988ad6b9d5e329c.tar.xz | |
changes to accommodate nacl:
* change ldt0setup to set GS itself; nacl won't let us do it.
* change breakpoint to INT $3 so 8l can translate to HLT for nacl.
* panic if closure is needed on nacl.
* do not try to access symbol table on nacl.
* mmap in 64kB chunks.
nacl support:
* system calls, threading, locks.
R=r
DELTA=365 (357 added, 5 deleted, 3 changed)
OCL=34880
CL=34906
Diffstat (limited to 'src/pkg/runtime/linux')
| -rwxr-xr-x | src/pkg/runtime/linux/386/sys.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/runtime/linux/386/sys.s b/src/pkg/runtime/linux/386/sys.s index 7f4787700b..fe07ddd54f 100755 --- a/src/pkg/runtime/linux/386/sys.s +++ b/src/pkg/runtime/linux/386/sys.s @@ -219,5 +219,12 @@ TEXT setldt(SB),7,$32 CMPL AX, $0xfffff001 JLS 2(PC) INT $3 + + // compute segment selector - (entry*8+7) + MOVL entry+0(FP), AX + SHLL $3, AX + ADDL $7, AX + MOVW AX, GS + RET |
