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
0b0f8092
Commit
0b0f8092
authored
Mar 17, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Add halt option to xmon, from Peter Bergner
parent
febda3e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
arch/ppc64/xmon/xmon.c
arch/ppc64/xmon/xmon.c
+6
-0
No files found.
arch/ppc64/xmon/xmon.c
View file @
0b0f8092
...
@@ -181,6 +181,7 @@ Commands:\n\
...
@@ -181,6 +181,7 @@ Commands:\n\
T Enable/Disable PPCDBG flags
\n
\
T Enable/Disable PPCDBG flags
\n
\
x exit monitor
\n
\
x exit monitor
\n
\
z reboot
\n
\
z reboot
\n
\
Z halt
\n
\
"
;
"
;
static
int
xmon_trace
[
NR_CPUS
];
static
int
xmon_trace
[
NR_CPUS
];
...
@@ -620,8 +621,13 @@ cmds(struct pt_regs *excp)
...
@@ -620,8 +621,13 @@ cmds(struct pt_regs *excp)
}
}
switch
(
cmd
)
{
switch
(
cmd
)
{
case
'z'
:
case
'z'
:
printf
(
"Rebooting machine now..."
);
machine_restart
(
NULL
);
machine_restart
(
NULL
);
break
;
break
;
case
'Z'
:
printf
(
"Halting machine now..."
);
machine_halt
();
break
;
case
'm'
:
case
'm'
:
cmd
=
inchar
();
cmd
=
inchar
();
switch
(
cmd
)
{
switch
(
cmd
)
{
...
...
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