ARC: [plat-eznps] handle extra aux regs #2: kernel/entry exit
authorLiav Rehana <liavr@mellanox.com>
Thu, 15 Jun 2017 08:44:00 +0000 (11:44 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 28 Aug 2017 22:17:36 +0000 (15:17 -0700)
commit28923f6b74060b183207a373ddae4ce4948cabea
treec2c393d1e3821cd51942614d94146f2af9601d0e
parent5b2189ab6ee0717babac912f779dcd440e942173
ARC: [plat-eznps] handle extra aux regs #2: kernel/entry exit

Preserve eflags and gpa1 aux during entry/exit into kernel as these
could be modified by kernel mode

These registers used by compare exchange instructions.
  - GPA1 is used for compare value,
  - EFLAGS got bit reflects atomic operation response.

EFLAGS is zeroed for each new user task so it won't get its
parent value.

Signed-off-by: Liav Rehana <liavr@mellanox.com>
Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/entry-compact.h
arch/arc/include/asm/ptrace.h
arch/arc/kernel/process.c