Skip to content

Get etcd running under arm64 - #3249

Merged
philips merged 2 commits into
etcd-io:masterfrom
philips:get-etcd-running-under-arm64
Aug 9, 2015
Merged

philips merged 2 commits into
etcd-io:masterfrom
philips:get-etcd-running-under-arm64

Conversation

@philips

@philips philips commented Aug 9, 2015

Copy link
Copy Markdown
Contributor

Two small fixes to make tests and etcd itself working on an armv7l machine.

@philips
philips force-pushed the get-etcd-running-under-arm64 branch from 20f3345 to 79a2b1a Compare August 9, 2015 01:06
Brandon Philips added 2 commits August 8, 2015 18:11
Follow the simple rule in the atomic package:

"On both ARM and x86-32, it is the caller's responsibility to arrange
for 64-bit alignment of 64-bit words accessed atomically. The first word
in a global variable or in an allocated struct or slice can be relied
upon to be 64-bit aligned."

Tested on a system with /proc/cpuinfo reporting:

processor       : 0
model name      : ARMv7 Processor rev 1 (v7l)
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3
tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc0d
CPU revision    : 1
Test fails without this fix on armv7l:

    go test: -race is only supported on linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64
@philips
philips force-pushed the get-etcd-running-under-arm64 branch from 79a2b1a to 1b894c6 Compare August 9, 2015 01:11
@xiang90

xiang90 commented Aug 9, 2015

Copy link
Copy Markdown
Contributor

LGTM

philips added a commit that referenced this pull request Aug 9, 2015
@philips
philips merged commit 45f3a0c into etcd-io:master Aug 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants