Re: [PATCH 2/3] Mark the 'current' pointer register read-only when such a thing exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: David Howells <dhowells@xxxxxxxxxx>
Date: Tue, 18 May 2010 17:45:42 +0100

> Where the value of current is kept in a register, that register can be marked
> such that the pointer value is read only, e.g.:
> 
> 	register struct task_struct *const current asm("e2");
> 
> This prevents inadvertent assignment outside of assembly code.
> 
> This has been available on the MN10300 arch for a while now, and I've also
> tested it on the FRV arch.
> 
> Signed-off-by: David Howells <dhowells@xxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux