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

Issue 134990043: code review 134990043: runtime: fix nacl build (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by rsc
Modified:
10 years, 6 months ago
Reviewers:
gobot, minux
CC:
golang-codereviews
Visibility:
Public.

Description

runtime: fix nacl build The NaCl "system calls" were assumed to have a compatible return convention with the C compiler, and we were using tail jumps to those functions. Don't do that anymore. Correct mistake introduced in newstackcall duringconversion from (SP) to (FP) notation. (Actually this fix, in asm_amd64p32.s, slipped into the C compiler change, but update the name to match what go vet wants.) Correct computation of caller stack pointer in morestack: on amd64p32, the saved PC is the size of a uintreg, not uintptr. This may not matter, since it's been like this for a while, but uintreg is the correct one. (And on non-NaCl they are the same.) This will allow the NaCl build to get much farther. It will probably still not work completely. There's a bug in 6l that needs fixing too.

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 5d86455c549905d18f68c719b2495d578de5c86d https://code.google.com/p/go/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -85 lines) Patch
M src/pkg/runtime/asm_amd64p32.s View 1 2 3 4 1 chunk +1 line, -1 line 1 comment Download
M src/pkg/runtime/os_nacl.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/stack.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_nacl_386.s View 1 2 3 3 chunks +70 lines, -28 lines 0 comments Download
M src/pkg/runtime/sys_nacl_amd64p32.s View 1 2 4 5 chunks +68 lines, -27 lines 0 comments Download
M src/pkg/runtime/sys_nacl_arm.s View 1 4 chunks +69 lines, -27 lines 0 comments Download

Messages

Total messages: 4
rsc
Hello minux (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years, 6 months ago (2014-08-28 02:50:05 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=d51c319e0f20 *** runtime: fix nacl build The NaCl "system calls" were assumed ...
10 years, 6 months ago (2014-08-28 02:50:12 UTC) #2
gobot
This CL appears to have broken the freebsd-amd64-race builder. See http://build.golang.org/log/bf8f8f12552e30b2c336971574c18efddcfaef4d
10 years, 6 months ago (2014-08-28 13:25:36 UTC) #3
minux
10 years, 6 months ago (2014-08-28 23:23:06 UTC) #4
Message was sent while issue was closed.
LGTM.

https://codereview.appspot.com/134990043/diff/80001/src/pkg/runtime/asm_amd64...
File src/pkg/runtime/asm_amd64p32.s (right):

https://codereview.appspot.com/134990043/diff/80001/src/pkg/runtime/asm_amd64...
src/pkg/runtime/asm_amd64p32.s:278: LEAL	fv+0(FP), AX	// our caller's SP
why change this?
Sign in to reply to this message.

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