summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/386
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý7-0/+1625
2011-09-13Imported Upstream version 60Ondřej Surý7-1584/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-0/+12
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-2/+10
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-1/+1
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-88/+165
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-0/+8
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-9/+10
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý5-66/+60
2010-04-09Library support for cgo export.Ian Lance Taylor1-1/+38
These functions are used to call from a C function back to a Go function. This only includes 386 support. R=rsc CC=golang-dev http://codereview.appspot.com/834045
2010-04-05runtime: various arm fixesRuss Cox2-0/+7
* correct symbol table size * do not reorder functions in output * traceback * signal handling * use same code for go + defer * handle leaf functions in symbol table R=kaib, dpx CC=golang-dev http://codereview.appspot.com/884041
2010-03-31runtime: make type assertion a runtime.Error, the first of manyRuss Cox1-14/+0
R=r CC=golang-dev http://codereview.appspot.com/805043
2010-03-30gc: add panic and recover (still unimplemented in runtime)Russ Cox1-7/+20
main semantic change is to enforce single argument to panic. runtime: change to 1-argument panic. use String method on argument if it has one. R=ken2, r CC=golang-dev http://codereview.appspot.com/812043
2010-03-29runtime: run deferred calls at GoexitRuss Cox1-6/+6
baby step toward panic+recover. Fixes issue 349. R=r CC=golang-dev http://codereview.appspot.com/825043
2010-03-23runtime: add CallersRuss Cox1-149/+0
cut copies of traceback from 6 to 1. R=r CC=golang-dev http://codereview.appspot.com/703041
2010-01-25in C and asm, replace pkg·name with ·nameRuss Cox4-15/+15
(eliminate assumption of package global name space, make code easier to move between packages). R=r CC=golang-dev http://codereview.appspot.com/194072
2010-01-13runtime: reset DF flag after running external code on 386Russ Cox1-0/+4
R=r CC=golang-dev http://codereview.appspot.com/186108
2010-01-06Ported runtime to Windows.Hector Chu1-18/+49
R=rsc CC=golang-dev http://codereview.appspot.com/176066 Committer: Russ Cox <rsc@golang.org>
2009-12-08Fix stack on FreeBSD / add stack check across the boardDevon H. O'Dell1-0/+11
FreeBSD was passing stk as the new thread's stack base, while stk is the top of the stack in go. The added check should cause a trap if this ever comes up in any new ports, or regresses in current ones. R=rsc CC=golang-dev http://codereview.appspot.com/167055 Committer: Russ Cox <rsc@golang.org>
2009-12-03runtime: fix Caller crash on 386.Russ Cox1-2/+2
Fixes issue 176. R=r http://codereview.appspot.com/166044
2009-11-18bugs in memmove:Rob Pike1-2/+3
- has arguments (no stack split) - MOVL does not set condition R=ken2, rsc http://codereview.appspot.com/156086
2009-11-18Remove unnecessary execute bits.William Josephson2-0/+0
R=rsc http://codereview.appspot.com/156077 Committer: Russ Cox <rsc@golang.org>
2009-11-17copy tweaksRuss Cox1-0/+90
* move memmove to arch-specific subdirectories * add memmove for arm * add copyright notices marking them as copied from Inferno R=ken2 http://codereview.appspot.com/156061
2009-11-15runtime: avoid crash in CallerRuss Cox1-1/+1
Fixes issue 176. R=r http://codereview.appspot.com/154146
2009-10-15rename sys functions to runtime,Russ Cox4-14/+14
because they are in package runtime. another step to enforcing package boundaries. R=r DELTA=732 (114 added, 93 deleted, 525 changed) OCL=35811 CL=35824
2009-10-12stack overflow debugging and fix.Russ Cox1-2/+12
* in 6l, -K already meant check for stack underflow. add -KK to mean double-check stack overflows even in nosplit functions. * comment out print locks; they deadlock too easily but are still useful to put back for special occasions. * let runcgo assembly switch to scheduler stack without involving scheduler directly. because runcgo gets called from matchmg, it is too hard to keep it from being called on other stacks. R=r DELTA=94 (65 added, 18 deleted, 11 changed) OCL=35591 CL=35604
2009-10-038c, 8l dynamic loading support.Russ Cox1-8/+32
better mach binaries. cgo working on darwin+linux amd64+386. eliminated context switches - pi is 30x faster. add libcgo to build. on snow leopard: - non-cgo binaries work; all tests pass. - cgo binaries work on amd64 but not 386. R=r DELTA=2031 (1316 added, 626 deleted, 89 changed) OCL=35264 CL=35304
2009-09-22changes to accommodate nacl:Russ Cox2-6/+6
* 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
2009-09-21convert 386 to use %gs instead of %fs for extern register.Russ Cox1-3/+3
required for nacl and may be nicer for ffi, because %gs is the standard register for thread-local storage. R=ken OCL=34861 CL=34866
2009-08-31use correct pc for printing fn+%#x in tracebacksRuss Cox1-5/+6
R=austin DELTA=12 (2 added, 0 deleted, 10 changed) OCL=34098 CL=34120
2009-08-14Account for CALL instructions before looking up the functionAustin Clements1-3/+3
at PC, to deal with functions that end with a CALL instruction. Special case known call-by-return functions. R=rsc APPROVED=rsc DELTA=12 (6 added, 6 deleted, 0 changed) OCL=33255 CL=33279
2009-08-13Don't try to account for CALL instruction in 0th frame.Austin Clements1-2/+3
R=rsc APPROVED=rsc DELTA=9 (4 added, 3 deleted, 2 changed) OCL=33238 CL=33251
2009-07-28make every func literal expression allocate,Russ Cox1-29/+32
so that == on func means that the functions originated in the same execution of a func literal or definition. before, there was an inconsistency: func() {x++} != func() {x++} but func() {} == func() {} this CL makes the second case != too, just like make(map[int]int) != make(map[int]int) R=r DELTA=202 (71 added, 62 deleted, 69 changed) OCL=32393 CL=32398
2009-07-08reflection for functionsRuss Cox1-0/+42
add channel send type check (thanks austin). fix type mismatch message. R=r DELTA=241 (225 added, 5 deleted, 11 changed) OCL=31370 CL=31375
2009-06-17update 386 to new runtime (CL 30381)Russ Cox2-69/+109
R=r DELTA=298 (119 added, 81 deleted, 98 changed) OCL=30427 CL=30443
2009-06-09mv src/lib to src/pkgRob Pike5-0/+1332
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102