Page MenuHomeFreeBSD

gcore: Add aarch64 32-bit core support
ClosedPublic

Authored by jhibbits on Oct 8 2019, 9:30 PM.
Tags
None
Referenced Files
F153953066: D21947.id63082.diff
Sat, Apr 25, 1:43 AM
F153931934: D21947.id.diff
Fri, Apr 24, 9:52 PM
F153921761: D21947.id63082.diff
Fri, Apr 24, 7:57 PM
F153876040: D21947.id63057.diff
Fri, Apr 24, 11:20 AM
Unknown Object (File)
Fri, Apr 24, 7:21 AM
Unknown Object (File)
Mon, Apr 20, 4:01 PM
Unknown Object (File)
Sun, Apr 19, 6:21 AM
Unknown Object (File)
Sun, Apr 19, 5:45 AM

Details

Summary

Add trivial 32-bit arm cores on aarch64 support for gcore. This doesn't handle fpregs.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 26958
Build 25258: arc lint + arc unit

Event Timeline

jhibbits retitled this revision from gcore: Add aarch64 support to gcore: Add aarch64 32-bit core support.Oct 8 2019, 9:33 PM
jhibbits edited the summary of this revision. (Show Details)
usr.bin/gcore/elf32core.c
40

I think you want to use rs->x[13] here. The comment in fill_regs32 in sys/arm64/arm64/machdep.c is useful: /* For arm32, SP is r13 and LR is r14 */

You probably also want to set r_lr to rs->x14.

Address andrew's feedback. Thanks!

usr.bin/gcore/Makefile
8

my usual pedantic comment, keep these sorts of additions in alpha order :)

usr.bin/gcore/elf32core.c
55

fwiw we've used ARM64TODO in the past

This revision is now accepted and ready to land.Oct 11 2019, 7:27 AM
This revision was automatically updated to reflect the committed changes.