aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2014-02-07 03:17:43 -0500
committerVineet Gupta <vgupta@synopsys.com>2014-03-26 05:01:28 -0400
commitec7ac6afd07b2d958aab9dfc0a686300b856922a (patch)
treea4705a35138437a44c8dc99939e36cfda4d34473 /arch/arc/kernel
parentd6579e99bc448a351279cea7469ab64a00d25ff8 (diff)
ARC: switch to generic ENTRY/END assembler annotations
With commit 9df62f054406 "arch: use ASM_NL instead of ';'" the generic macros can handle the arch specific newline quirk. Hence we can get rid of ARC asm macros and use the "C" style macros. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel')
-rw-r--r--arch/arc/kernel/ctx_sw_asm.S2
-rw-r--r--arch/arc/kernel/entry.S52
2 files changed, 27 insertions, 27 deletions
diff --git a/arch/arc/kernel/ctx_sw_asm.S b/arch/arc/kernel/ctx_sw_asm.S
index 65690e7fcc8c..2ff0347a2fd7 100644
--- a/arch/arc/kernel/ctx_sw_asm.S
+++ b/arch/arc/kernel/ctx_sw_asm.S
@@ -62,4 +62,4 @@ __switch_to:
62 ld.ab blink, [sp, 4] 62 ld.ab blink, [sp, 4]
63 j [blink] 63 j [blink]
64 64
65ARC_EXIT __switch_to 65END(__switch_to)
diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S
index 47d09d07f093..819dd5f7eb05 100644
--- a/arch/arc/kernel/entry.S
+++ b/arch/arc/kernel/entry.S
@@ -141,7 +141,7 @@ VECTOR EV_Extension ; 0x130, Extn Intruction Excp (0x26)
141VECTOR reserved ; Reserved Exceptions 141VECTOR reserved ; Reserved Exceptions
142.endr 142.endr
143 143
144#include <linux/linkage.h> /* ARC_{EXTRY,EXIT} */ 144#include <linux/linkage.h> /* {EXTRY,EXIT} */
145#include <asm/entry.h> /* SAVE_ALL_{INT1,INT2,SYS...} */ 145#include <asm/entry.h> /* SAVE_ALL_{INT1,INT2,SYS...} */
146#include <asm/errno.h> 146#include <asm/errno.h>
147#include <asm/arcregs.h> 147#include <asm/arcregs.h>
@@ -184,7 +184,7 @@ reserved: ; processor restart
184; --------------------------------------------- 184; ---------------------------------------------
185; Level 2 ISR: Can interrupt a Level 1 ISR 185; Level 2 ISR: Can interrupt a Level 1 ISR
186; --------------------------------------------- 186; ---------------------------------------------
187ARC_ENTRY handle_interrupt_level2 187ENTRY(handle_interrupt_level2)
188 188
189 ; TODO-vineetg for SMP this wont work 189 ; TODO-vineetg for SMP this wont work
190 ; free up r9 as scratchpad 190 ; free up r9 as scratchpad
@@ -225,14 +225,14 @@ ARC_ENTRY handle_interrupt_level2
225 225
226 b ret_from_exception 226 b ret_from_exception
227 227
228ARC_EXIT handle_interrupt_level2 228END(handle_interrupt_level2)
229 229
230#endif 230#endif
231 231
232; --------------------------------------------- 232; ---------------------------------------------
233; Level 1 ISR 233; Level 1 ISR
234; --------------------------------------------- 234; ---------------------------------------------
235ARC_ENTRY handle_interrupt_level1 235ENTRY(handle_interrupt_level1)
236 236
237 /* free up r9 as scratchpad */ 237 /* free up r9 as scratchpad */
238#ifdef CONFIG_SMP 238#ifdef CONFIG_SMP
@@ -265,7 +265,7 @@ ARC_ENTRY handle_interrupt_level1
265 sr r8, [AUX_IRQ_LV12] ; clear bit in Sticky Status Reg 265 sr r8, [AUX_IRQ_LV12] ; clear bit in Sticky Status Reg
266 266
267 b ret_from_exception 267 b ret_from_exception
268ARC_EXIT handle_interrupt_level1 268END(handle_interrupt_level1)
269 269
270;################### Non TLB Exception Handling ############################# 270;################### Non TLB Exception Handling #############################
271 271
@@ -273,7 +273,7 @@ ARC_EXIT handle_interrupt_level1
273; Instruction Error Exception Handler 273; Instruction Error Exception Handler
274; --------------------------------------------- 274; ---------------------------------------------
275 275
276ARC_ENTRY instr_service 276ENTRY(instr_service)
277 277
278 EXCEPTION_PROLOGUE 278 EXCEPTION_PROLOGUE
279 279
@@ -284,13 +284,13 @@ ARC_ENTRY instr_service
284 284
285 bl do_insterror_or_kprobe 285 bl do_insterror_or_kprobe
286 b ret_from_exception 286 b ret_from_exception
287ARC_EXIT instr_service 287END(instr_service)
288 288
289; --------------------------------------------- 289; ---------------------------------------------
290; Memory Error Exception Handler 290; Memory Error Exception Handler
291; --------------------------------------------- 291; ---------------------------------------------
292 292
293ARC_ENTRY mem_service 293ENTRY(mem_service)
294 294
295 EXCEPTION_PROLOGUE 295 EXCEPTION_PROLOGUE
296 296
@@ -301,13 +301,13 @@ ARC_ENTRY mem_service
301 301
302 bl do_memory_error 302 bl do_memory_error
303 b ret_from_exception 303 b ret_from_exception
304ARC_EXIT mem_service 304END(mem_service)
305 305
306; --------------------------------------------- 306; ---------------------------------------------
307; Machine Check Exception Handler 307; Machine Check Exception Handler
308; --------------------------------------------- 308; ---------------------------------------------
309 309
310ARC_ENTRY EV_MachineCheck 310ENTRY(EV_MachineCheck)
311 311
312 EXCEPTION_PROLOGUE 312 EXCEPTION_PROLOGUE
313 313
@@ -331,13 +331,13 @@ ARC_ENTRY EV_MachineCheck
331 331
332 j do_machine_check_fault 332 j do_machine_check_fault
333 333
334ARC_EXIT EV_MachineCheck 334END(EV_MachineCheck)
335 335
336; --------------------------------------------- 336; ---------------------------------------------
337; Protection Violation Exception Handler 337; Protection Violation Exception Handler
338; --------------------------------------------- 338; ---------------------------------------------
339 339
340ARC_ENTRY EV_TLBProtV 340ENTRY(EV_TLBProtV)
341 341
342 EXCEPTION_PROLOGUE 342 EXCEPTION_PROLOGUE
343 343
@@ -385,12 +385,12 @@ ARC_ENTRY EV_TLBProtV
385 385
386 b ret_from_exception 386 b ret_from_exception
387 387
388ARC_EXIT EV_TLBProtV 388END(EV_TLBProtV)
389 389
390; --------------------------------------------- 390; ---------------------------------------------
391; Privilege Violation Exception Handler 391; Privilege Violation Exception Handler
392; --------------------------------------------- 392; ---------------------------------------------
393ARC_ENTRY EV_PrivilegeV 393ENTRY(EV_PrivilegeV)
394 394
395 EXCEPTION_PROLOGUE 395 EXCEPTION_PROLOGUE
396 396
@@ -401,12 +401,12 @@ ARC_ENTRY EV_PrivilegeV
401 401
402 bl do_privilege_fault 402 bl do_privilege_fault
403 b ret_from_exception 403 b ret_from_exception
404ARC_EXIT EV_PrivilegeV 404END(EV_PrivilegeV)
405 405
406; --------------------------------------------- 406; ---------------------------------------------
407; Extension Instruction Exception Handler 407; Extension Instruction Exception Handler
408; --------------------------------------------- 408; ---------------------------------------------
409ARC_ENTRY EV_Extension 409ENTRY(EV_Extension)
410 410
411 EXCEPTION_PROLOGUE 411 EXCEPTION_PROLOGUE
412 412
@@ -417,7 +417,7 @@ ARC_ENTRY EV_Extension
417 417
418 bl do_extension_fault 418 bl do_extension_fault
419 b ret_from_exception 419 b ret_from_exception
420ARC_EXIT EV_Extension 420END(EV_Extension)
421 421
422;######################### System Call Tracing ######################### 422;######################### System Call Tracing #########################
423 423
@@ -504,7 +504,7 @@ trap_with_param:
504; (2) Break Points 504; (2) Break Points
505;------------------------------------------------------------------ 505;------------------------------------------------------------------
506 506
507ARC_ENTRY EV_Trap 507ENTRY(EV_Trap)
508 508
509 EXCEPTION_PROLOGUE 509 EXCEPTION_PROLOGUE
510 510
@@ -534,9 +534,9 @@ ARC_ENTRY EV_Trap
534 jl [r9] ; Entry into Sys Call Handler 534 jl [r9] ; Entry into Sys Call Handler
535 535
536 ; fall through to ret_from_system_call 536 ; fall through to ret_from_system_call
537ARC_EXIT EV_Trap 537END(EV_Trap)
538 538
539ARC_ENTRY ret_from_system_call 539ENTRY(ret_from_system_call)
540 540
541 st r0, [sp, PT_r0] ; sys call return value in pt_regs 541 st r0, [sp, PT_r0] ; sys call return value in pt_regs
542 542
@@ -546,7 +546,7 @@ ARC_ENTRY ret_from_system_call
546; 546;
547; If ret to user mode do we need to handle signals, schedule() et al. 547; If ret to user mode do we need to handle signals, schedule() et al.
548 548
549ARC_ENTRY ret_from_exception 549ENTRY(ret_from_exception)
550 550
551 ; Pre-{IRQ,Trap,Exception} K/U mode from pt_regs->status32 551 ; Pre-{IRQ,Trap,Exception} K/U mode from pt_regs->status32
552 ld r8, [sp, PT_status32] ; returning to User/Kernel Mode 552 ld r8, [sp, PT_status32] ; returning to User/Kernel Mode
@@ -726,9 +726,9 @@ not_level1_interrupt:
726debug_marker_syscall: 726debug_marker_syscall:
727 rtie 727 rtie
728 728
729ARC_EXIT ret_from_exception 729END(ret_from_exception)
730 730
731ARC_ENTRY ret_from_fork 731ENTRY(ret_from_fork)
732 ; when the forked child comes here from the __switch_to function 732 ; when the forked child comes here from the __switch_to function
733 ; r0 has the last task pointer. 733 ; r0 has the last task pointer.
734 ; put last task in scheduler queue 734 ; put last task in scheduler queue
@@ -745,11 +745,11 @@ ARC_ENTRY ret_from_fork
745 ; special case of kernel_thread entry point returning back due to 745 ; special case of kernel_thread entry point returning back due to
746 ; kernel_execve() - pretend return from syscall to ret to userland 746 ; kernel_execve() - pretend return from syscall to ret to userland
747 b ret_from_exception 747 b ret_from_exception
748ARC_EXIT ret_from_fork 748END(ret_from_fork)
749 749
750;################### Special Sys Call Wrappers ########################## 750;################### Special Sys Call Wrappers ##########################
751 751
752ARC_ENTRY sys_clone_wrapper 752ENTRY(sys_clone_wrapper)
753 SAVE_CALLEE_SAVED_USER 753 SAVE_CALLEE_SAVED_USER
754 bl @sys_clone 754 bl @sys_clone
755 DISCARD_CALLEE_SAVED_USER 755 DISCARD_CALLEE_SAVED_USER
@@ -759,7 +759,7 @@ ARC_ENTRY sys_clone_wrapper
759 bnz tracesys_exit 759 bnz tracesys_exit
760 760
761 b ret_from_system_call 761 b ret_from_system_call
762ARC_EXIT sys_clone_wrapper 762END(sys_clone_wrapper)
763 763
764#ifdef CONFIG_ARC_DW2_UNWIND 764#ifdef CONFIG_ARC_DW2_UNWIND
765; Workaround for bug 94179 (STAR ): 765; Workaround for bug 94179 (STAR ):