Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
bb37e97f
Commit
bb37e97f
authored
Feb 06, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Fix use of #if - should be #ifdef.
parent
7508df7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
include/asm-arm/hardware/sa1111.h
include/asm-arm/hardware/sa1111.h
+0
-8
include/asm-arm/semaphore.h
include/asm-arm/semaphore.h
+7
-7
No files found.
include/asm-arm/hardware/sa1111.h
View file @
bb37e97f
...
@@ -219,8 +219,6 @@
...
@@ -219,8 +219,6 @@
#define _SAITR _SA1111( 0x065c )
#define _SAITR _SA1111( 0x065c )
#define _SADR _SA1111( 0x0680 )
#define _SADR _SA1111( 0x0680 )
#if LANGUAGE == C
#define SACR0 __CCREG(0x0600)
#define SACR0 __CCREG(0x0600)
#define SACR1 __CCREG(0x0604)
#define SACR1 __CCREG(0x0604)
#define SACR2 __CCREG(0x0608)
#define SACR2 __CCREG(0x0608)
...
@@ -246,8 +244,6 @@
...
@@ -246,8 +244,6 @@
#define SAITR __CCREG(0x065c)
#define SAITR __CCREG(0x065c)
#define SADR __CCREG(0x0680)
#define SADR __CCREG(0x0680)
#endif
/* LANGUAGE == C */
#define SACR0_ENB (1<<0)
#define SACR0_ENB (1<<0)
#define SACR0_BCKD (1<<2)
#define SACR0_BCKD (1<<2)
#define SACR0_RST (1<<3)
#define SACR0_RST (1<<3)
...
@@ -368,8 +364,6 @@
...
@@ -368,8 +364,6 @@
#define _PC_SDR _SA1111( 0x1028 )
#define _PC_SDR _SA1111( 0x1028 )
#define _PC_SSR _SA1111( 0x102c )
#define _PC_SSR _SA1111( 0x102c )
#if LANGUAGE == C
#define PA_DDR __CCREG(0x1000)
#define PA_DDR __CCREG(0x1000)
#define PA_DRR __CCREG(0x1004)
#define PA_DRR __CCREG(0x1004)
#define PA_DWR __CCREG(0x1004)
#define PA_DWR __CCREG(0x1004)
...
@@ -386,8 +380,6 @@
...
@@ -386,8 +380,6 @@
#define PC_SDR __CCREG(0x1028)
#define PC_SDR __CCREG(0x1028)
#define PC_SSR __CCREG(0x102c)
#define PC_SSR __CCREG(0x102c)
#endif
/* LANGUAGE == C */
/*
/*
* Interrupt Controller
* Interrupt Controller
*
*
...
...
include/asm-arm/semaphore.h
View file @
bb37e97f
...
@@ -16,12 +16,12 @@ struct semaphore {
...
@@ -16,12 +16,12 @@ struct semaphore {
atomic_t
count
;
atomic_t
count
;
int
sleepers
;
int
sleepers
;
wait_queue_head_t
wait
;
wait_queue_head_t
wait
;
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
long
__magic
;
long
__magic
;
#endif
#endif
};
};
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
# define __SEM_DEBUG_INIT(name) .__magic = (long)&(name).__magic
# define __SEM_DEBUG_INIT(name) .__magic = (long)&(name).__magic
#else
#else
# define __SEM_DEBUG_INIT(name)
# define __SEM_DEBUG_INIT(name)
...
@@ -46,7 +46,7 @@ static inline void sema_init(struct semaphore *sem, int val)
...
@@ -46,7 +46,7 @@ static inline void sema_init(struct semaphore *sem, int val)
atomic_set
(
&
sem
->
count
,
val
);
atomic_set
(
&
sem
->
count
,
val
);
sem
->
sleepers
=
0
;
sem
->
sleepers
=
0
;
init_waitqueue_head
(
&
sem
->
wait
);
init_waitqueue_head
(
&
sem
->
wait
);
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
sem
->
__magic
=
(
long
)
&
sem
->
__magic
;
sem
->
__magic
=
(
long
)
&
sem
->
__magic
;
#endif
#endif
}
}
...
@@ -85,7 +85,7 @@ extern void __up(struct semaphore * sem);
...
@@ -85,7 +85,7 @@ extern void __up(struct semaphore * sem);
*/
*/
static
inline
void
down
(
struct
semaphore
*
sem
)
static
inline
void
down
(
struct
semaphore
*
sem
)
{
{
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
CHECK_MAGIC
(
sem
->
__magic
);
#endif
#endif
might_sleep
();
might_sleep
();
...
@@ -98,7 +98,7 @@ static inline void down(struct semaphore * sem)
...
@@ -98,7 +98,7 @@ static inline void down(struct semaphore * sem)
*/
*/
static
inline
int
down_interruptible
(
struct
semaphore
*
sem
)
static
inline
int
down_interruptible
(
struct
semaphore
*
sem
)
{
{
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
CHECK_MAGIC
(
sem
->
__magic
);
#endif
#endif
might_sleep
();
might_sleep
();
...
@@ -107,7 +107,7 @@ static inline int down_interruptible (struct semaphore * sem)
...
@@ -107,7 +107,7 @@ static inline int down_interruptible (struct semaphore * sem)
static
inline
int
down_trylock
(
struct
semaphore
*
sem
)
static
inline
int
down_trylock
(
struct
semaphore
*
sem
)
{
{
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
CHECK_MAGIC
(
sem
->
__magic
);
#endif
#endif
...
@@ -122,7 +122,7 @@ static inline int down_trylock(struct semaphore *sem)
...
@@ -122,7 +122,7 @@ static inline int down_trylock(struct semaphore *sem)
*/
*/
static
inline
void
up
(
struct
semaphore
*
sem
)
static
inline
void
up
(
struct
semaphore
*
sem
)
{
{
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
CHECK_MAGIC
(
sem
->
__magic
);
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment