summaryrefslogtreecommitdiff
path: root/src/runtime/amd64_linux.h
AgeCommit message (Collapse)AuthorFilesLines
2009-03-24move darwin specific code into runtime/darwin/Russ Cox1-52/+0
move darwin-amd64 specific code into runtime/darwin/amd64/ repeat for linux. move rt0 into runtime.a instead of keeping a separate .6 file. 6l seems to have no problem with that. TBR=r OCL=26680 CL=26680
2008-09-24cleanup; sys.sleep can go.Russ Cox1-1/+0
R=r OCL=15786 CL=15792
2008-09-09go threads for OS XRuss Cox1-1/+1
R=r OCL=14944 CL=15013
2008-08-05* comment, clean up schedulerRuss Cox1-1/+1
* rewrite lock implementation to be correct (tip: never assume that an algorithm you found in a linux man page is correct.) * delete unneeded void* arg from clone fn * replace Rendez with Note * comment mal better * use 6c -w, fix warnings * mark all assembly functions 7 R=r DELTA=828 (338 added, 221 deleted, 269 changed) OCL=13884 CL=13886
2008-08-04first cut at multithreading. works on Linux.Russ Cox1-1/+12
* kick off new os procs (machs) as needed * add sys·sleep for testing * add Lock, Rendez * properly lock mal, sys·newproc, scheduler * linux syscall arg #4 is in R10, not CX * chans are not multithread-safe yet * multithreading disabled by default; set $gomaxprocs=2 (or 1000) to turn it on This should build on OS X but may not. Rob and I will fix soon after submitting. TBR=r OCL=13784 CL=13842
2008-07-15add linkage for writefile on darwinRob Pike1-0/+2
SVN=127208
2008-06-26repair struct definitionRob Pike1-5/+5
SVN=124985
2008-06-26make readfile work on darwinRob Pike1-0/+40
parameterize the system interface a bit SVN=124981