tile: define a macro ktext_writable_addr to get writable kernel text address
authorZhigang Lu <zlu@ezchip.com>
Wed, 30 Sep 2015 01:53:47 +0000 (09:53 +0800)
committerChris Metcalf <cmetcalf@ezchip.com>
Mon, 4 Jan 2016 20:09:31 +0000 (15:09 -0500)
commitf419e6f63c5afea00d7c17ebf54f2d265f5c4d7e
treec9c49f97a3a3abd0c55fce3f41fe71ef0125d3af
parent9f9499ae8e6415cefc4fe0a96ad0e27864353c89
tile: define a macro ktext_writable_addr to get writable kernel text address

It is used by kgdb, ftrace, kprobe and jump label, so we factor
this out into a helper routine.

Reviewed-by: Chris Metcalf <cmetcalf@ezchip.com>
Signed-off-by: Zhigang Lu <zlu@ezchip.com>
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
arch/tile/include/asm/page.h
arch/tile/kernel/ftrace.c
arch/tile/kernel/kgdb.c
arch/tile/kernel/kprobes.c