summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2002-09-11 02:47:16 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-09-11 02:47:16 -0700
commit0e9387ab91c5a93fff869a4f45f47c9a5c0b2129 (patch)
treed2235859862979049bbbbf6c5360446225d1a924
parent6ff3e5b71de9989797f40b1a0e12feba244afa8f (diff)
Allocate system call numbers: 250 and 251 for hugetlb, with
252 for exit_group
-rw-r--r--arch/i386/kernel/entry.S4
-rw-r--r--include/asm-i386/unistd.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/arch/i386/kernel/entry.S b/arch/i386/kernel/entry.S
index 25145b3e5eb3..ce3fa2791b5f 100644
--- a/arch/i386/kernel/entry.S
+++ b/arch/i386/kernel/entry.S
@@ -759,7 +759,9 @@ ENTRY(sys_call_table)
.long sys_io_getevents
.long sys_io_submit
.long sys_io_cancel
- .long sys_exit_group /* 250 */
+ .long sys_ni_syscall /* 250 */ /* sys_alloc_hugepages */
+ .long sys_ni_syscall /* sys_free_hugepages */
+ .long sys_exit_group
.rept NR_syscalls-(.-sys_call_table)/4
.long sys_ni_syscall
diff --git a/include/asm-i386/unistd.h b/include/asm-i386/unistd.h
index 4b702bd8e683..1a095484bd32 100644
--- a/include/asm-i386/unistd.h
+++ b/include/asm-i386/unistd.h
@@ -254,6 +254,9 @@
#define __NR_io_getevents 247
#define __NR_io_submit 248
#define __NR_io_cancel 249
+#define __NR_alloc_hugepages 250
+#define __NR_free_hugepages 251
+#define __NR_exit_group 252
/* user-visible error numbers are in the range -1 - -124: see <asm-i386/errno.h> */