Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(942)

Issue 220933002: Add arm64 support to linux_syscall_support.h (Closed)

Created:
6 years, 8 months ago by rmcilroy
Modified:
6 years, 8 months ago
Reviewers:
Mark Seaborn, jbramley
CC:
Primiano Tucci (use gerrit), chromium-reviews
Visibility:
Public.

Description

Add arm64 support to linux_syscall_support.h. This CL adds arm64 support for linux syscall support. The arm64 kernel depricates a number of syscalls, such as fork(), poll() and open(), so we need to replicate the behaviour of these syscalls from newer related syscalls, such as clone(), ppoll() and openat(). The code added here is based on that in glibc for aarch64, and Android bionic for arm64, but currently hasn't been tested on either platform. It does enable breakpad to compile for arm64 though. BUG=354405, 335641 R=jacob.bramley@arm.com, mseaborn@chromium.org Committed: 26

Patch Set 1 #

Patch Set 2 : #

Total comments: 20

Patch Set 3 : Address Mark's comments #

Patch Set 4 : Fix kernel_getdents definition on aarch64 #

Total comments: 36

Patch Set 5 : Address Mark's comments #

Patch Set 6 : Add comment. #

Total comments: 1

Patch Set 7 : Address Jacob's comments. #

Patch Set 8 : Change adds,bne to mov, cbnz #

Patch Set 9 : Fix line lenght #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -26 lines) Patch
M linux_syscall_support.h View 1 2 3 4 5 6 7 8 22 chunks +372 lines, -26 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
rmcilroy
Mark: This cl adds arm64/aarch64 support to linux_syscall_support.h. Unfortunately aarch64 deprecated a bunch of syscalls, ...
6 years, 8 months ago (2014-04-01 16:12:20 UTC) #1
Mark Seaborn
https://codereview.chromium.org/220933002/diff/20001/linux_syscall_support.h File linux_syscall_support.h (left): https://codereview.chromium.org/220933002/diff/20001/linux_syscall_support.h#oldcode2894 linux_syscall_support.h:2894: #if defined(__x86_64__) || \ Could you possibly commit small ...
6 years, 8 months ago (2014-04-03 21:44:21 UTC) #2
rmcilroy
Thanks for the review Mark. I've addressed the comments, PTAL. https://codereview.chromium.org/220933002/diff/20001/linux_syscall_support.h File linux_syscall_support.h (left): https://codereview.chromium.org/220933002/diff/20001/linux_syscall_support.h#oldcode2894 ...
6 years, 8 months ago (2014-04-04 13:57:03 UTC) #3
rmcilroy
On 2014/04/04 13:57:03, rmcilroy wrote: > Thanks for the review Mark. I've addressed the comments, ...
6 years, 8 months ago (2014-04-07 18:09:31 UTC) #4
Mark Seaborn
My main non-trivial comment is a question about fork()... https://codereview.chromium.org/220933002/diff/60001/linux_syscall_support.h File linux_syscall_support.h (right): https://codereview.chromium.org/220933002/diff/60001/linux_syscall_support.h#newcode498 linux_syscall_support.h:498: ...
6 years, 8 months ago (2014-04-08 16:52:44 UTC) #5
rmcilroy
Thanks for the comments Mark. All addressed. PTAL. https://codereview.chromium.org/220933002/diff/60001/linux_syscall_support.h File linux_syscall_support.h (right): https://codereview.chromium.org/220933002/diff/60001/linux_syscall_support.h#newcode498 linux_syscall_support.h:498: long ...
6 years, 8 months ago (2014-04-09 12:37:06 UTC) #6
rmcilroy
On 2014/04/09 12:37:06, rmcilroy wrote: > Thanks for the comments Mark. All addressed. PTAL. > ...
6 years, 8 months ago (2014-04-14 17:00:34 UTC) #7
Mark Seaborn
LGTM. I'm not familiar with AArch64, BTW, so you might want to get someone who ...
6 years, 8 months ago (2014-04-14 19:15:21 UTC) #8
rmcilroy
Thanks for the review Mark. Jacob: Could you have a quick glance at the arm64 ...
6 years, 8 months ago (2014-04-15 09:18:48 UTC) #9
jbramley
I have a few suggestions, but it looks sane. https://codereview.chromium.org/220933002/diff/60001/linux_syscall_support.h File linux_syscall_support.h (right): https://codereview.chromium.org/220933002/diff/60001/linux_syscall_support.h#newcode2453 linux_syscall_support.h:2453: ...
6 years, 8 months ago (2014-04-15 10:16:41 UTC) #10
rmcilroy
Thanks for the review Jacob. https://codereview.chromium.org/220933002/diff/60001/linux_syscall_support.h File linux_syscall_support.h (right): https://codereview.chromium.org/220933002/diff/60001/linux_syscall_support.h#newcode2453 linux_syscall_support.h:2453: #define LSS_REG(r,a) register long ...
6 years, 8 months ago (2014-04-15 11:50:28 UTC) #11
jbramley
> https://codereview.chromium.org/220933002/diff/60001/linux_syscall_support.h#newcode2531 > linux_syscall_support.h:2531: "stp %1, %4, [%2, #-16]!\n" > On 2014/04/15 10:16:42, jbramley wrote: ...
6 years, 8 months ago (2014-04-15 11:53:49 UTC) #12
rmcilroy
> Good point! Well in that case, the following is probably still clearer: > > ...
6 years, 8 months ago (2014-04-15 12:48:21 UTC) #13
Anton
6 years, 8 months ago (2014-04-15 13:06:45 UTC) #14
Message was sent while issue was closed.
Committed patchset #9 manually as r26 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698