diff mbox

[v2,06/20] arm/alternative: Use _start instead of _stext

Message ID 1472132255-23470-7-git-send-email-konrad.wilk@oracle.com (mailing list archive)
State New, archived
Headers show

Commit Message

Konrad Rzeszutek Wilk Aug. 25, 2016, 1:37 p.m. UTC
The code uses a mix of _start, _stext, and _etext. Lets unify
it and use the same 'style'.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
Cc: Julien Grall <julien.grall@arm.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>

v2: First submission
---
 xen/arch/arm/alternative.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/xen/arch/arm/alternative.c b/xen/arch/arm/alternative.c
index 90a857a..ed84170 100644
--- a/xen/arch/arm/alternative.c
+++ b/xen/arch/arm/alternative.c
@@ -95,7 +95,7 @@  static int __apply_alternatives(const struct alt_region *region)
     const struct alt_instr *alt;
     const u32 *origptr, *replptr;
     u32 *writeptr, *writemap = NULL;
-    mfn_t text_mfn = _mfn(virt_to_mfn(_stext));
+    mfn_t text_mfn = _mfn(virt_to_mfn(_start));
     unsigned int text_order = get_order_from_bytes(_end - _start);
 
     if ( region->begin >= __alt_instructions &&