Thread (170 messages) 170 messages, 19 authors, 2012-09-16

[PATCH v2 23/31] arm64: Debugging support

From: Will Deacon <hidden>
Date: 2012-08-21 09:03:36
Also in: linux-arch, lkml

On Mon, Aug 20, 2012 at 09:10:59PM +0100, Arnd Bergmann wrote:
On Monday 20 August 2012, Will Deacon wrote:
quoted
On Mon, Aug 20, 2012 at 10:07:54AM +0100, Will Deacon wrote:
quoted
On Fri, Aug 17, 2012 at 08:06:07AM +0100, Arnd Bergmann wrote:
quoted
Sorry for the dumb question, but why do you even need PTRACE_GET_THREAD_AREA
for 64 bit tasks? I thought the thread pointer is a GPR, or is this just
for compat tasks?
The TLS is stored in a co-processor register which is read-only for
userspace.
I should elaborate: the register is RW for AArch64 tasks, RO for aarch32
tasks (although that doesn't affect the need for the ptrace request).
So can't you just /add/ that register to the GPR regset?
We *could*, but it doesn't feel right to me. The TLS register:

	- Can only be manipulated by msr/mrs instructions
	- Is not part of the PCS
	- Is not accessed explicitly by user applications
	- Can not be written via ptrace

so I think it sticks out like a sore thumb if we bundle it up with the GPRs.

Will
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help