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

Issue 76250043: code review 76250043: runtime: fix 386 assembly for syscall.naclWrite (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by remyoudompheng
Modified:
10 years, 1 month ago
Reviewers:
gobot, dfc, iant
CC:
golang-codereviews, iant
Visibility:
Public.

Description

runtime: fix 386 assembly for syscall.naclWrite It was using the wrong offset and returned random values making "runoutput" compiler tests crash.

Patch Set 1 #

Patch Set 2 : diff -r 9eb0e586ec54 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 9eb0e586ec54 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 9eb0e586ec54 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/pkg/runtime/sys_nacl_386.s View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
remyoudompheng
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 1 month ago (2014-03-14 21:25:03 UTC) #1
iant
LGTM
10 years, 1 month ago (2014-03-14 21:45:37 UTC) #2
remyoudompheng
*** Submitted as https://code.google.com/p/go/source/detail?r=b1c5bf74b59e *** runtime: fix 386 assembly for syscall.naclWrite It was using the ...
10 years, 1 month ago (2014-03-14 21:49:54 UTC) #3
dfc
Thanks for fixing that, this was my mistake. I made two mistakes in that original ...
10 years, 1 month ago (2014-03-14 22:55:20 UTC) #4
gobot
This CL appears to have broken the darwin-amd64-cheney builder. See http://build.golang.org/log/30c7127359c3b4e5764ac60f0ddd257af50be494
10 years, 1 month ago (2014-03-14 22:57:29 UTC) #5
remyoudompheng
On 2014/03/14 22:55:20, dfc wrote: > Thanks for fixing that, this was my mistake. > ...
10 years, 1 month ago (2014-03-14 23:06:10 UTC) #6
dfc
10 years, 1 month ago (2014-03-14 23:10:57 UTC) #7

> On 15 Mar 2014, at 10:06, remyoudompheng@gmail.com wrote:
> 
>> On 2014/03/14 22:55:20, dfc wrote:
>> Thanks for fixing that, this was my mistake.
> 
>> I made two mistakes in that original commit, the stack sizes, and the
> return
>> offset.
> 
>> Could you please explain what my mistake was so I can improve and
> avoid this
>> mistake in the future.
> 
> naclWrite is a:
> 
>  func naclWrite(fd int, data []byte) int
> 
> So the return value is after fd (4 bytes) and data (12 bytes), that
> makes a +16 offset. In this case the code is exactly equivalent to
> amd64p32. Maybe you were confused because cap(data) is not used by the
> function ?

Yes, that was the piece I was missing. Did I get the function signature right,
from memory I made it $12-16


> 
> Rémy.
> 
> https://codereview.appspot.com/76250043/
Sign in to reply to this message.

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