Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(665)

Issue 101510049: code review 101510049: liblink, runtime: preliminary support for plan9/amd64 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by aram
Modified:
10 years, 11 months ago
Reviewers:
gobot, rsc, dave, ality
CC:
golang-codereviews, rsc, bradfitz, dave_cheney.net, 0intro, ality, jas, minux1, mischief_9.offblast.org
Visibility:
Public.

Description

liblink, runtime: preliminary support for plan9/amd64 A TLS slot is reserved by _rt0_.*_plan9 as an automatic and its address (which is static on Plan 9) is saved in the global _privates symbol. The startup linkage now is exactly like that from Plan 9 libc, and the way we access g is exactly as if we'd have used privalloc(2). Aside from making the code more standard, this change drastically simplifies it, both for 386 and for amd64, and makes the Plan 9 code in liblink common for both 386 and amd64. The amd64 runtime code was cleared of nxm assumptions, and now runs on the standard Plan 9 kernel. Note handling fixes will follow in a separate CL.

Patch Set 1 #

Patch Set 2 : diff -r 1fcd603852b0 https://code.google.com/p/go #

Patch Set 3 : diff -r 1fcd603852b0 https://code.google.com/p/go #

Total comments: 9

Patch Set 4 : diff -r 86b431eeb5c2 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -142 lines) Patch
M include/link.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/liblink/asm6.c View 1 2 chunks +13 lines, -1 line 0 comments Download
M src/liblink/asm8.c View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/liblink/obj6.c View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M src/liblink/obj8.c View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/liblink/sym.c View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M src/pkg/runtime/arch_amd64.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/defs_plan9_amd64.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/memclr_plan9_amd64.s View 1 1 chunk +11 lines, -38 lines 0 comments Download
M src/pkg/runtime/os_plan9.c View 1 1 chunk +29 lines, -0 lines 0 comments Download
M src/pkg/runtime/rt0_plan9_386.s View 1 1 chunk +11 lines, -30 lines 0 comments Download
M src/pkg/runtime/rt0_plan9_amd64.s View 1 1 chunk +10 lines, -3 lines 0 comments Download
M src/pkg/runtime/sys_plan9_386.s View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_plan9_amd64.s View 1 4 chunks +3 lines, -23 lines 0 comments Download
R src/pkg/runtime/time_plan9_386.c View 1 1 chunk +0 lines, -36 lines 0 comments Download

Messages

Total messages: 18
aram
Hello golang-codereviews@googlegroups.com (cc: 0intro, ality, jas, minux1, mischief@9.offblast.org, rsc), I'd like you to review this ...
10 years, 11 months ago (2014-06-30 12:33:43 UTC) #1
rsc
If this were a completely new port you'd need a builder running before we started ...
10 years, 11 months ago (2014-06-30 15:46:42 UTC) #2
aram
David says he can put a machine up by the end of July. I don't ...
10 years, 11 months ago (2014-06-30 16:17:07 UTC) #3
rsc
I am also a little confused by "The amd64 runtime code was cleared of nxm ...
10 years, 11 months ago (2014-06-30 16:22:13 UTC) #4
aram
> I am also a little confused by "The amd64 runtime code was cleared of ...
10 years, 11 months ago (2014-06-30 16:33:42 UTC) #5
rsc
And where is pc64? On Mon, Jun 30, 2014 at 12:33 PM, <aram@mgk.ro> wrote: > ...
10 years, 11 months ago (2014-06-30 17:23:22 UTC) #6
aram
On Mon, Jun 30, 2014 at 7:23 PM, Russ Cox <rsc@golang.org> wrote: > And where ...
10 years, 11 months ago (2014-06-30 17:24:46 UTC) #7
aram
https://codereview.appspot.com/101510049/diff/40001/src/pkg/runtime/memclr_plan9_amd64.s File src/pkg/runtime/memclr_plan9_amd64.s (right): https://codereview.appspot.com/101510049/diff/40001/src/pkg/runtime/memclr_plan9_amd64.s#newcode13 src/pkg/runtime/memclr_plan9_amd64.s:13: SHRQ $3, CX Ugh, this can't be right, fixing.
10 years, 11 months ago (2014-06-30 20:46:37 UTC) #8
rsc
LGTM Okay, I'll let this in because there is already plan9/amd64 code in the tree. ...
10 years, 11 months ago (2014-06-30 21:29:56 UTC) #9
bradfitz
He's already gotten builder keys from me for both amd64 and arm. On Jun 30, ...
10 years, 11 months ago (2014-06-30 21:31:45 UTC) #10
dave_cheney.net
Some minor comments. https://codereview.appspot.com/101510049/diff/40001/src/liblink/obj6.c File src/liblink/obj6.c (right): https://codereview.appspot.com/101510049/diff/40001/src/liblink/obj6.c#newcode106 src/liblink/obj6.c:106: // case Hlinux: please remove this ...
10 years, 11 months ago (2014-07-01 23:24:47 UTC) #11
aram
https://codereview.appspot.com/101510049/diff/40001/src/liblink/obj6.c File src/liblink/obj6.c (right): https://codereview.appspot.com/101510049/diff/40001/src/liblink/obj6.c#newcode106 src/liblink/obj6.c:106: // case Hlinux: On 2014/07/01 23:24:47, dfc wrote: > ...
10 years, 11 months ago (2014-07-01 23:32:21 UTC) #12
aram
Btw, we have builder now. Also, tests are almost passing: http://paste.ubuntu.com/7732055/
10 years, 11 months ago (2014-07-01 23:33:12 UTC) #13
dave_cheney.net
*** Submitted as https://code.google.com/p/go/source/detail?r=85b6bbfa558b *** liblink, runtime: preliminary support for plan9/amd64 A TLS slot is ...
10 years, 11 months ago (2014-07-02 11:04:29 UTC) #14
gobot
This CL appears to have broken the plan9-386-cnielsen builder. See http://build.golang.org/log/c8b0320fa782202286714778f9b7cbb521fc7fd1
10 years, 11 months ago (2014-07-02 12:05:50 UTC) #15
aram
On Wed, Jul 2, 2014 at 2:05 PM, <gobot@golang.org> wrote: > This CL appears to ...
10 years, 11 months ago (2014-07-02 12:25:50 UTC) #16
ality
LGTM I know this has already been submitted but I've only now had time to ...
10 years, 11 months ago (2014-07-07 03:00:21 UTC) #17
aram
10 years, 11 months ago (2014-07-07 13:11:33 UTC) #18
*** Abandoned ***
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b