diff options
| author | Namhoon Kim <namhoonk@cs.unc.edu> | 2014-11-19 16:01:27 -0500 |
|---|---|---|
| committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2014-11-19 16:01:27 -0500 |
| commit | d77654f3287edf9fa6aeda97825e9a972bdc8821 (patch) | |
| tree | 6fef5e799ac51b5410a68d1a928f6a3a6e94fe39 /arch | |
| parent | cef9a08794f4ecdd0d1ea80ef4035f2bc9e234ce (diff) | |
set_page_color syscall
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/include/asm/unistd.h | 2 | ||||
| -rw-r--r-- | arch/arm/kernel/calls.S | 3 | ||||
| -rw-r--r-- | arch/arm/mm/cache-l2x0.c | 4 | ||||
| -rw-r--r-- | arch/x86/syscalls/syscall_32.tbl | 1 | ||||
| -rw-r--r-- | arch/x86/syscalls/syscall_64.tbl | 1 |
5 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 0db825dda11f..f31a912e2c9a 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | #include <uapi/asm/unistd.h> | 16 | #include <uapi/asm/unistd.h> |
| 17 | /** __NR_syscalls padding */ | 17 | /** __NR_syscalls padding */ |
| 18 | #define __NR_syscalls (380 + NR_litmus_syscalls + 1) | 18 | #define __NR_syscalls (380 + NR_litmus_syscalls) |
| 19 | 19 | ||
| 20 | #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) | 20 | #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) |
| 21 | 21 | ||
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 34c5ee7964eb..2fbce68d96d3 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S | |||
| @@ -404,7 +404,8 @@ | |||
| 404 | CALL(sys_reservation_create) | 404 | CALL(sys_reservation_create) |
| 405 | CALL(sys_reservation_destroy) | 405 | CALL(sys_reservation_destroy) |
| 406 | CALL(sys_set_mc2_task_param) | 406 | CALL(sys_set_mc2_task_param) |
| 407 | 407 | /* 395 */ CALL(sys_set_page_color) | |
| 408 | |||
| 408 | #ifndef syscalls_counted | 409 | #ifndef syscalls_counted |
| 409 | .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls | 410 | .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls |
| 410 | #define syscalls_counted | 411 | #define syscalls_counted |
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index 5efe6b6e9d53..cff808e79199 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c | |||
| @@ -326,6 +326,7 @@ void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask) | |||
| 326 | { | 326 | { |
| 327 | u32 aux; | 327 | u32 aux; |
| 328 | u32 cache_id; | 328 | u32 cache_id; |
| 329 | u32 cache_type; | ||
| 329 | u32 way_size = 0; | 330 | u32 way_size = 0; |
| 330 | int ways; | 331 | int ways; |
| 331 | int way_size_shift = L2X0_WAY_SIZE_SHIFT; | 332 | int way_size_shift = L2X0_WAY_SIZE_SHIFT; |
| @@ -337,6 +338,8 @@ void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask) | |||
| 337 | else | 338 | else |
| 338 | cache_id = readl_relaxed(l2x0_base + L2X0_CACHE_ID); | 339 | cache_id = readl_relaxed(l2x0_base + L2X0_CACHE_ID); |
| 339 | aux = readl_relaxed(l2x0_base + L2X0_AUX_CTRL); | 340 | aux = readl_relaxed(l2x0_base + L2X0_AUX_CTRL); |
| 341 | |||
| 342 | cache_type = readl_relaxed(l2x0_base + L2X0_CACHE_TYPE); | ||
| 340 | 343 | ||
| 341 | aux &= aux_mask; | 344 | aux &= aux_mask; |
| 342 | aux |= aux_val; | 345 | aux |= aux_val; |
| @@ -424,6 +427,7 @@ void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask) | |||
| 424 | printk(KERN_INFO "%s cache controller enabled\n", type); | 427 | printk(KERN_INFO "%s cache controller enabled\n", type); |
| 425 | printk(KERN_INFO "l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x, Cache size: %d B\n", | 428 | printk(KERN_INFO "l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x, Cache size: %d B\n", |
| 426 | ways, cache_id, aux, l2x0_size); | 429 | ways, cache_id, aux, l2x0_size); |
| 430 | printk(KERN_INFO "l2x0: CACHE_TYPE 0x%08x\n", cache_type); | ||
| 427 | 431 | ||
| 428 | litmus_setup_lockdown(l2x0_base, cache_id); | 432 | litmus_setup_lockdown(l2x0_base, cache_id); |
| 429 | } | 433 | } |
diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl index 20f6cdcf56dd..401f313f9cdd 100644 --- a/arch/x86/syscalls/syscall_32.tbl +++ b/arch/x86/syscalls/syscall_32.tbl | |||
| @@ -373,3 +373,4 @@ | |||
| 373 | 363 i386 reservation_create sys_reservation_create | 373 | 363 i386 reservation_create sys_reservation_create |
| 374 | 364 i386 reservation_destroy sys_reservation_destroy | 374 | 364 i386 reservation_destroy sys_reservation_destroy |
| 375 | 365 i386 set_mc2_task_param sys_set_mc2_task_param | 375 | 365 i386 set_mc2_task_param sys_set_mc2_task_param |
| 376 | 366 i386 set_page_color sys_set_page_color | ||
diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl index f3d142c2a900..77710a93c2a3 100644 --- a/arch/x86/syscalls/syscall_64.tbl +++ b/arch/x86/syscalls/syscall_64.tbl | |||
| @@ -336,6 +336,7 @@ | |||
| 336 | 363 common reservation_create sys_reservation_create | 336 | 363 common reservation_create sys_reservation_create |
| 337 | 364 common reservation_destroy sys_reservation_destroy | 337 | 364 common reservation_destroy sys_reservation_destroy |
| 338 | 365 common set_mc2_task_param sys_set_mc2_task_param | 338 | 365 common set_mc2_task_param sys_set_mc2_task_param |
| 339 | 366 common set_page_color sys_set_page_color | ||
| 339 | 340 | ||
| 340 | # | 341 | # |
| 341 | # x32-specific system call numbers start at 512 to avoid cache impact | 342 | # x32-specific system call numbers start at 512 to avoid cache impact |
