Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
F
fernly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Craig Comstock
fernly
Commits
deced071
Commit
deced071
authored
Apr 07, 2015
by
Sean Cross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Silenced GCC warnings"
This reverts commit
11ac2200
.
parent
2df4be2d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
15 deletions
+3
-15
cmd-peekpoke.c
cmd-peekpoke.c
+1
-5
fernly-usb-loader.c
fernly-usb-loader.c
+0
-3
irq.c
irq.c
+1
-6
lcd.c
lcd.c
+1
-1
No files found.
cmd-peekpoke.c
View file @
deced071
...
...
@@ -15,10 +15,8 @@ int cmd_peek(int argc, char **argv)
offset
=
strtoul
(
argv
[
0
],
NULL
,
0
);
#pragma GCC diagnostic ignored "-Wformat"
printf
(
"Value at 0x%08x: "
,
offset
);
printf
(
"0x%08x
\n
"
,
*
((
volatile
uint32_t
*
)
offset
));
#pragma GCC diagnostic pop
return
0
;
}
...
...
@@ -35,10 +33,8 @@ int cmd_poke(int argc, char **argv)
offset
=
strtoul
(
argv
[
0
],
NULL
,
0
);
val
=
strtoul
(
argv
[
1
],
NULL
,
0
);
#pragma GCC diagnostic ignored "-Wformat"
printf
(
"Setting value at 0x%08x to 0x%08x: "
,
offset
,
val
);
#pragma GCC diagnostic pop
writel
(
val
,
offset
);
writel
(
val
,
offset
);
printf
(
"Ok
\n
"
);
return
0
;
...
...
fernly-usb-loader.c
View file @
deced071
...
...
@@ -1175,10 +1175,7 @@ static int fernvale_write_stage3(int serfd, int binfd)
}
static
void
cmd_begin
(
const
char
*
msg
)
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-security"
printf
(
msg
);
#pragma GCC diagnostic pop
printf
(
"... "
);
fflush
(
stdout
);
}
...
...
irq.c
View file @
deced071
...
...
@@ -130,9 +130,7 @@ void irq_dispatch(void)
printf
(
"Dispatching IRQs...
\n
"
);
reg
=
IRQ_BASE
+
IRQ_STATUS_OFF
;
val
=
readl
(
reg
);
#pragma GCC diagnostic ignored "-Wformat"
printf
(
"Lower Mask: 0x%08x
\n
"
,
val
);
#pragma GCC diagnostic pop
for
(
i
=
0
;
i
<
32
;
i
++
)
if
(
val
&
(
1
<<
i
))
...
...
@@ -140,10 +138,7 @@ void irq_dispatch(void)
reg
+=
IRQ_BASE
+
IRQ_STATUS_OFF
+
4
;
val
=
readl
(
reg
);
#pragma GCC diagnostic ignored "-Wformat"
printf
(
"Upper Mask: 0x%08x
\n
"
,
val
);
#pragma GCC diagnostic pop
printf
(
"Upper Mask: 0x%08x
\n
"
,
val
);
for
(
i
=
0
;
i
<
(
__irq_max__
-
32
);
i
++
)
if
(
val
&
(
1
<<
i
))
irq_dispatch_one
(
32
+
i
);
...
...
lcd.c
View file @
deced071
...
...
@@ -29,11 +29,11 @@ static void lcd_cmd_slot(uint16_t cmd, uint8_t slot)
{
writel
(
cmd
|
0x800000
,
LCD_CMD_LIST_ADDR
+
(
slot
*
4
));
}
#pragma GCC diagnostic ignored "-Wunused-function"
static
void
lcd_dat_slot
(
uint16_t
dat
,
uint8_t
slot
)
{
writel
(
dat
,
LCD_CMD_LIST_ADDR
+
(
slot
*
4
));
}
static
void
lcd_setup_gpio
(
void
)
{
/* LPCE0, LPTE0, LPRSTB */
...
...
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