lkml.org 
[lkml]   [2017]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 10/11] ARC: enable platform specific mem_service implementation
Date
From: Noam Camus <noamca@mellanox.com>

For User Mode Memory Bus Error some platforms do not creat interrupt
level 2 e.g. nps400 creates machine check exception.
Turning mem_service into weak symbol allows each platform to override
mem_service with its own implementation.

Signed-off-by: Noam Camus <noamca@mellanox.com>
---
arch/arc/kernel/entry-compact.S | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arc/kernel/entry-compact.S b/arch/arc/kernel/entry-compact.S
index f285dbb..c5736d6 100644
--- a/arch/arc/kernel/entry-compact.S
+++ b/arch/arc/kernel/entry-compact.S
@@ -200,8 +200,9 @@ END(handle_interrupt_level2)
; ---------------------------------------------
; User Mode Memory Bus Error Interrupt Handler
; (Kernel mode memory errors handled via separate exception vectors)
+; Platforms can override this weak version if needed
; ---------------------------------------------
-ENTRY(mem_service)
+WEAK(mem_service)

INTERRUPT_PROLOGUE 2

--
1.7.1
\
 
 \ /
  Last update: 2017-05-28 08:54    [W:0.096 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site