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