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
a3d9fcff
Commit
a3d9fcff
authored
Jun 10, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/agpgart
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
5449586c
4c17e91a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
arch/alpha/Kconfig
arch/alpha/Kconfig
+1
-1
include/linux/reboot.h
include/linux/reboot.h
+1
-0
kernel/sys.c
kernel/sys.c
+4
-2
No files found.
arch/alpha/Kconfig
View file @
a3d9fcff
...
...
@@ -297,7 +297,7 @@ config PCI
config PCI_DOMAINS
bool
default
PCI
default
y
config ALPHA_CORE_AGP
bool
...
...
include/linux/reboot.h
View file @
a3d9fcff
...
...
@@ -9,6 +9,7 @@
#define LINUX_REBOOT_MAGIC2 672274793
#define LINUX_REBOOT_MAGIC2A 85072278
#define LINUX_REBOOT_MAGIC2B 369367448
#define LINUX_REBOOT_MAGIC2C 537993216
/*
...
...
kernel/sys.c
View file @
a3d9fcff
...
...
@@ -392,8 +392,10 @@ asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user
/* For safety, we require "magic" arguments. */
if
(
magic1
!=
LINUX_REBOOT_MAGIC1
||
(
magic2
!=
LINUX_REBOOT_MAGIC2
&&
magic2
!=
LINUX_REBOOT_MAGIC2A
&&
magic2
!=
LINUX_REBOOT_MAGIC2B
))
(
magic2
!=
LINUX_REBOOT_MAGIC2
&&
magic2
!=
LINUX_REBOOT_MAGIC2A
&&
magic2
!=
LINUX_REBOOT_MAGIC2B
&&
magic2
!=
LINUX_REBOOT_MAGIC2C
))
return
-
EINVAL
;
lock_kernel
();
...
...
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