提交 62eaf40b 编写于 作者: S Szabolcs Nagy 提交者: Rich Felker

add pkey_{mprotect,alloc,free} syscalls from linux v4.9

see linux commit e8c24d3a23a469f1f40d4de24d872ca7023ced0a
and linux Documentation/x86/protection-keys.txt
上级 5bf7eba2
...@@ -271,4 +271,7 @@ ...@@ -271,4 +271,7 @@
#define __NR_copy_file_range 285 #define __NR_copy_file_range 285
#define __NR_preadv2 286 #define __NR_preadv2 286
#define __NR_pwritev2 287 #define __NR_pwritev2 287
#define __NR_pkey_mprotect 288
#define __NR_pkey_alloc 289
#define __NR_pkey_free 290
...@@ -347,6 +347,9 @@ ...@@ -347,6 +347,9 @@
#define __NR_copy_file_range 391 #define __NR_copy_file_range 391
#define __NR_preadv2 392 #define __NR_preadv2 392
#define __NR_pwritev2 393 #define __NR_pwritev2 393
#define __NR_pkey_mprotect 394
#define __NR_pkey_alloc 395
#define __NR_pkey_free 396
#define __ARM_NR_breakpoint 0x0f0001 #define __ARM_NR_breakpoint 0x0f0001
#define __ARM_NR_cacheflush 0x0f0002 #define __ARM_NR_cacheflush 0x0f0002
......
...@@ -378,4 +378,7 @@ ...@@ -378,4 +378,7 @@
#define __NR_copy_file_range 377 #define __NR_copy_file_range 377
#define __NR_preadv2 378 #define __NR_preadv2 378
#define __NR_pwritev2 379 #define __NR_pwritev2 379
#define __NR_pkey_mprotect 380
#define __NR_pkey_alloc 381
#define __NR_pkey_free 382
...@@ -360,4 +360,7 @@ ...@@ -360,4 +360,7 @@
#define __NR_copy_file_range 4360 #define __NR_copy_file_range 4360
#define __NR_preadv2 4361 #define __NR_preadv2 4361
#define __NR_pwritev2 4362 #define __NR_pwritev2 4362
#define __NR_pkey_mprotect 4363
#define __NR_pkey_alloc 4364
#define __NR_pkey_free 4365
...@@ -320,4 +320,7 @@ ...@@ -320,4 +320,7 @@
#define __NR_copy_file_range 5320 #define __NR_copy_file_range 5320
#define __NR_preadv2 5321 #define __NR_preadv2 5321
#define __NR_pwritev2 5322 #define __NR_pwritev2 5322
#define __NR_pkey_mprotect 5323
#define __NR_pkey_alloc 5324
#define __NR_pkey_free 5325
...@@ -324,4 +324,7 @@ ...@@ -324,4 +324,7 @@
#define __NR_copy_file_range 6324 #define __NR_copy_file_range 6324
#define __NR_preadv2 6325 #define __NR_preadv2 6325
#define __NR_pwritev2 6326 #define __NR_pwritev2 6326
#define __NR_pkey_mprotect 6327
#define __NR_pkey_alloc 6328
#define __NR_pkey_free 6329
...@@ -271,4 +271,7 @@ ...@@ -271,4 +271,7 @@
#define __NR_copy_file_range 285 #define __NR_copy_file_range 285
#define __NR_preadv2 286 #define __NR_preadv2 286
#define __NR_pwritev2 287 #define __NR_pwritev2 287
#define __NR_pkey_mprotect 288
#define __NR_pkey_alloc 289
#define __NR_pkey_free 290
...@@ -280,6 +280,9 @@ ...@@ -280,6 +280,9 @@
#define __NR_membarrier (0x40000000 + 324) #define __NR_membarrier (0x40000000 + 324)
#define __NR_mlock2 (0x40000000 + 325) #define __NR_mlock2 (0x40000000 + 325)
#define __NR_copy_file_range (0x40000000 + 326) #define __NR_copy_file_range (0x40000000 + 326)
#define __NR_pkey_mprotect (0x40000000 + 329)
#define __NR_pkey_alloc (0x40000000 + 330)
#define __NR_pkey_free (0x40000000 + 331)
#define __NR_rt_sigaction (0x40000000 + 512) #define __NR_rt_sigaction (0x40000000 + 512)
#define __NR_rt_sigreturn (0x40000000 + 513) #define __NR_rt_sigreturn (0x40000000 + 513)
......
...@@ -327,4 +327,7 @@ ...@@ -327,4 +327,7 @@
#define __NR_copy_file_range 326 #define __NR_copy_file_range 326
#define __NR_preadv2 327 #define __NR_preadv2 327
#define __NR_pwritev2 328 #define __NR_pwritev2 328
#define __NR_pkey_mprotect 329
#define __NR_pkey_alloc 330
#define __NR_pkey_free 331
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册