foss-for-synopsys-dwc-arc-processors / linux

Helpful resources for users & developers of Linux kernel for ARC
22 stars 13 forks source link

ARCv3: r13 register changes in accordance with ABI #170

Closed xxkent closed 3 weeks ago

xxkent commented 1 month ago

For the ARCv3 architecture, changes have occurred regarding the r13 registry in the ABI. Now register r13 from callee saved has become a scratch register. This patch moves r13 in the corresponding structures and makes changes in functions for proper saving and restoring user context.

xxkent commented 1 month ago

Looks like we can't changing arch/arc/include/uapi/asm/ptrace.h by this way adding platform specific macro CONFIG_ISA_ARCV3 to the header which is used by user-space code.

I get "error: arch/arc/include/uapi/asm/ptrace.h: leak CONFIG_ISA_ARCV3 to user-space" from buildroot then.