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
7f84c0a2
Commit
7f84c0a2
authored
Jan 02, 2015
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: ARC: Use __noreturn / unreachable in ARC termination functions.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
2f26c488
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
arch/mips/fw/arc/misc.c
arch/mips/fw/arc/misc.c
+16
-10
No files found.
arch/mips/fw/arc/misc.c
View file @
7f84c0a2
...
...
@@ -9,6 +9,7 @@
* Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
* Copyright (C) 1999 Silicon Graphics, Inc.
*/
#include <linux/compiler.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/irqflags.h>
...
...
@@ -19,50 +20,55 @@
#include <asm/sgialib.h>
#include <asm/bootinfo.h>
VOID
VOID
__noreturn
ArcHalt
(
VOID
)
{
bc_disable
();
local_irq_disable
();
ARC_CALL0
(
halt
);
never:
goto
never
;
unreachable
();
}
VOID
VOID
__noreturn
ArcPowerDown
(
VOID
)
{
bc_disable
();
local_irq_disable
();
ARC_CALL0
(
pdown
);
never:
goto
never
;
unreachable
();
}
/* XXX is this a soft reset basically? XXX */
VOID
VOID
__noreturn
ArcRestart
(
VOID
)
{
bc_disable
();
local_irq_disable
();
ARC_CALL0
(
restart
);
never:
goto
never
;
unreachable
();
}
VOID
VOID
__noreturn
ArcReboot
(
VOID
)
{
bc_disable
();
local_irq_disable
();
ARC_CALL0
(
reboot
);
never:
goto
never
;
unreachable
();
}
VOID
VOID
__noreturn
ArcEnterInteractiveMode
(
VOID
)
{
bc_disable
();
local_irq_disable
();
ARC_CALL0
(
imode
);
never:
goto
never
;
unreachable
();
}
LONG
...
...
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