-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 123834 b: refs/heads/master c: a520979 h: refs/heads/master v: v3
- Loading branch information
Ben Dooks
committed
Dec 15, 2008
1 parent
51a4e13
commit a1ba7d5
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: d521f87e9c642dbc820cb839039e25a05cb02151 | ||
refs/heads/master: a5209797450a7c95a9b546d83dae163833f16437 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* arch/arm/mach-s3c6400/include/mach/entry-macro.S | ||
* | ||
* Copyright 2008 Openmoko, Inc. | ||
* Copyright 2008 Simtec Electronics | ||
* http://armlinux.simtec.co.uk/ | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* | ||
* Low-level IRQ helper macros for the Samsung S3C64XX series | ||
* | ||
* This file is licensed under the terms of the GNU General Public | ||
* License version 2. This program is licensed "as is" without any | ||
* warranty of any kind, whether express or implied. | ||
*/ | ||
|
||
#include <asm/hardware/vic.h> | ||
#include <mach/map.h> | ||
#include <plat/irqs.h> | ||
|
||
.macro disable_fiq | ||
.endm | ||
|
||
.macro get_irqnr_preamble, base, tmp | ||
ldr \base, =S3C_VA_VIC0 | ||
.endm | ||
|
||
.macro arch_ret_to_user, tmp1, tmp2 | ||
.endm | ||
|
||
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp | ||
|
||
@ check the vic0 | ||
mov \irqnr, # S3C_IRQ_OFFSET + 31 | ||
ldr \irqstat, [ \base, # VIC_IRQ_STATUS ] | ||
teq \irqstat, #0 | ||
|
||
@ otherwise try vic1 | ||
addeq \tmp, \base, #(S3C_VA_VIC1 - S3C_VA_VIC0) | ||
addeq \irqnr, \irqnr, #32 | ||
ldreq \irqstat, [ \tmp, # VIC_IRQ_STATUS ] | ||
teqeq \irqstat, #0 | ||
|
||
clzne \irqstat, \irqstat | ||
subne \irqnr, \irqnr, \irqstat | ||
.endm |