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
nexedi
linux
Commits
893829b6
Commit
893829b6
authored
Mar 14, 2004
by
Yoshinori Sato
Committed by
Linus Torvalds
Mar 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] H8/300: fix waring
- fix gcc-3.4.0 warnings
parent
197170b1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
arch/h8300/kernel/setup.c
arch/h8300/kernel/setup.c
+1
-1
arch/h8300/mm/init.c
arch/h8300/mm/init.c
+1
-1
arch/h8300/platform/h8300h/generic/timer.c
arch/h8300/platform/h8300h/generic/timer.c
+2
-2
include/asm-h8300/bitops.h
include/asm-h8300/bitops.h
+13
-13
No files found.
arch/h8300/kernel/setup.c
View file @
893829b6
...
...
@@ -135,7 +135,7 @@ void __init setup_arch(char **cmdline_p)
init_mm
.
brk
=
(
unsigned
long
)
0
;
#if (defined(CONFIG_H8300H_SIM) || defined(CONFIG_H8S_SIM)) && defined(CONFIG_GDB_MAGICPRINT)
register_console
(
&
gdb_console
);
register_console
(
(
struct
console
*
)
&
gdb_console
);
#endif
printk
(
"
\r\n\n
uClinux "
CPU
"
\n
"
);
...
...
arch/h8300/mm/init.c
View file @
893829b6
...
...
@@ -156,7 +156,7 @@ void mem_init(void)
/* DAVIDM look at setup memory map generically with reserved area */
unsigned
long
tmp
;
extern
char
_etext
,
_stext
,
_sdata
,
_ebss
,
__init_begin
,
__init_end
;
extern
unsigned
char
_ramend
,
_ramstart
;
extern
unsigned
long
_ramend
,
_ramstart
;
unsigned
long
len
=
&
_ramend
-
&
_ramstart
;
unsigned
long
start_mem
=
memory_start
;
/* DAVIDM - these must start at end of kernel */
unsigned
long
end_mem
=
memory_end
;
/* DAVIDM - this must not include kernel stack at top */
...
...
arch/h8300/platform/h8300h/generic/timer.c
View file @
893829b6
...
...
@@ -31,7 +31,7 @@ extern int request_irq_boot(unsigned int,
#include <asm/regs306x.h>
#define CMFA 6
int
platform_timer_setup
(
void
(
*
timer_int
)(
int
,
void
*
,
struct
pt_regs
*
))
int
platform_timer_setup
(
irqreturn_t
(
*
timer_int
)(
int
,
void
*
,
struct
pt_regs
*
))
{
ctrl_outb
(
H8300_TIMER_COUNT_DATA
,
TCORA2
);
ctrl_outb
(
0x00
,
_8TCSR2
);
...
...
@@ -62,7 +62,7 @@ void platform_timer_eoi(void)
#define GRA 0x00ffff6a
#define GRB 0x00ffff6c
int
platform_timer_setup
(
void
(
*
timer_int
)(
int
,
void
*
,
struct
pt_regs
*
))
int
platform_timer_setup
(
irqreturn_t
(
*
timer_int
)(
int
,
void
*
,
struct
pt_regs
*
))
{
*
(
unsigned
short
*
)
GRA
=
H8300_TIMER_COUNT_DATA
;
*
(
unsigned
short
*
)
TCNT
=
0
;
...
...
include/asm-h8300/bitops.h
View file @
893829b6
...
...
@@ -89,21 +89,21 @@ static __inline__ int test_bit(int nr, const unsigned long* addr)
case BIT: \
__asm__("stc ccr,%w1\n\t" \
"orc #0x80,ccr\n\t" \
"bld #" #BIT ",@%
3
\n\t" \
OP " #" #BIT ",@%
3
\n\t" \
"bld #" #BIT ",@%
4
\n\t" \
OP " #" #BIT ",@%
4
\n\t" \
"rotxl.l %0\n\t" \
"ldc %w1,ccr" \
: "=r"(retval),"=&r"(ccrsave)
\
: "=r"(retval),"=&r"(ccrsave)
,"=m"(*b_addr)
\
: "0" (retval),"r" (b_addr) \
: "memory"); \
break;
#define H8300_GEN_TEST_BITOP_CONST(OP,BIT) \
case BIT: \
__asm__("bld #" #BIT ",@%
2
\n\t" \
OP " #" #BIT ",@%
2
\n\t" \
__asm__("bld #" #BIT ",@%
3
\n\t" \
OP " #" #BIT ",@%
3
\n\t" \
"rotxl.l %0\n\t" \
: "=r"(retval)
\
: "=r"(retval)
,"=m"(*b_addr)
\
: "0" (retval),"r" (b_addr) \
: "memory"); \
break;
...
...
@@ -129,13 +129,13 @@ static __inline__ int FNNAME(int nr, volatile void * addr) \
} else { \
__asm__("stc ccr,%w1\n\t" \
"orc #0x80,ccr\n\t" \
"btst %w
4,@%3
\n\t" \
OP " %w
4,@%3
\n\t" \
"btst %w
5,@%4
\n\t" \
OP " %w
5,@%4
\n\t" \
"beq 1f\n\t" \
"inc.l #1,%0\n" \
"1:\n\t" \
"ldc %w1,ccr" \
: "=r"(retval),"=&r"(ccrsave)
\
: "=r"(retval),"=&r"(ccrsave)
,"=m"(*b_addr)
\
: "0" (retval),"r" (b_addr),"r"(nr) \
: "memory"); \
} \
...
...
@@ -159,12 +159,12 @@ static __inline__ int __ ## FNNAME(int nr, volatile void * addr) \
H8300_GEN_TEST_BITOP_CONST(OP,7) \
} \
} else { \
__asm__("btst %w
3,@%2
\n\t" \
OP " %w
3,@%2
\n\t" \
__asm__("btst %w
4,@%3
\n\t" \
OP " %w
4,@%3
\n\t" \
"beq 1f\n\t" \
"inc.l #1,%0\n" \
"1:" \
: "=r"(retval)
\
: "=r"(retval)
,"=m"(*b_addr)
\
: "0" (retval),"r" (b_addr),"r"(nr) \
: "memory"); \
} \
...
...
@@ -183,7 +183,7 @@ H8300_GEN_TEST_BITOP(test_and_change_bit,"bnot")
static
__inline__
int
find_next_zero_bit
(
void
*
addr
,
int
size
,
int
offset
)
{
unsigned
long
*
p
=
(
(
unsigned
long
*
)
addr
)
+
(
offset
>>
5
);
unsigned
long
*
p
=
(
unsigned
long
*
)(((
unsigned
long
)
addr
+
(
offset
>>
3
))
&
~
3
);
unsigned
long
result
=
offset
&
~
31UL
;
unsigned
long
tmp
;
...
...
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