diff options
| author | Namhoon Kim <namhoonk@cs.unc.edu> | 2016-03-23 07:12:48 -0400 |
|---|---|---|
| committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2016-03-23 07:12:48 -0400 |
| commit | 2e23e3f0cc7c3249b510e94b5b3ec92577b67e81 (patch) | |
| tree | e7013e91d61647510e55d4472987c6c24dea136f /arch | |
| parent | ec03ee041b4bf4de3983166dbfded77a90541420 (diff) | |
initial
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/boot/compressed/Makefile | 1 | ||||
| -rw-r--r-- | arch/arm/include/asm/unistd.h | 2 | ||||
| -rw-r--r-- | arch/arm/kernel/calls.S | 1 | ||||
| -rw-r--r-- | arch/arm/mm/cache-l2x0.c | 10 | ||||
| -rw-r--r-- | arch/x86/syscalls/syscall_32.tbl | 1 | ||||
| -rw-r--r-- | arch/x86/syscalls/syscall_64.tbl | 1 |
6 files changed, 14 insertions, 2 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 6e1fb2b2ecc7..e2284fef1ce3 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile | |||
| @@ -107,6 +107,7 @@ ifeq ($(CONFIG_FUNCTION_TRACER),y) | |||
| 107 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | 107 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
| 108 | KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) | 108 | KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) |
| 109 | endif | 109 | endif |
| 110 | KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING | ||
| 110 | 111 | ||
| 111 | ccflags-y := -fpic -mno-single-pic-base -fno-builtin -I$(obj) | 112 | ccflags-y := -fpic -mno-single-pic-base -fno-builtin -I$(obj) |
| 112 | asflags-y := -DZIMAGE | 113 | asflags-y := -DZIMAGE |
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 7197bbe4dda1..3b7d36b921d3 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | * This may need to be greater than __NR_last_syscall+1 in order to | 19 | * This may need to be greater than __NR_last_syscall+1 in order to |
| 20 | * account for the padding in the syscall table | 20 | * account for the padding in the syscall table |
| 21 | */ | 21 | */ |
| 22 | #define __NR_syscalls (388 + NR_litmus_syscalls + 3) | 22 | #define __NR_syscalls (388 + NR_litmus_syscalls + 2) |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | /* | 25 | /* |
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 3e002969469a..a272b84a2fe7 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S | |||
| @@ -410,6 +410,7 @@ | |||
| 410 | CALL(sys_release_ts) | 410 | CALL(sys_release_ts) |
| 411 | CALL(sys_null_call) | 411 | CALL(sys_null_call) |
| 412 | /* 400 */ CALL(sys_get_current_budget) | 412 | /* 400 */ CALL(sys_get_current_budget) |
| 413 | CALL(sys_test_call) | ||
| 413 | 414 | ||
| 414 | 415 | ||
| 415 | #ifndef syscalls_counted | 416 | #ifndef syscalls_counted |
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index e309c8f35af5..71c969a1d790 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c | |||
| @@ -33,6 +33,8 @@ | |||
| 33 | #include "cache-tauros3.h" | 33 | #include "cache-tauros3.h" |
| 34 | #include "cache-aurora-l2.h" | 34 | #include "cache-aurora-l2.h" |
| 35 | 35 | ||
| 36 | #include <litmus/cache_proc.h> | ||
| 37 | |||
| 36 | struct l2c_init_data { | 38 | struct l2c_init_data { |
| 37 | const char *type; | 39 | const char *type; |
| 38 | unsigned way_size_0; | 40 | unsigned way_size_0; |
| @@ -726,7 +728,6 @@ static void __init l2c310_fixup(void __iomem *base, u32 cache_id, | |||
| 726 | 728 | ||
| 727 | if (n) { | 729 | if (n) { |
| 728 | unsigned i; | 730 | unsigned i; |
| 729 | |||
| 730 | pr_info("L2C-310 errat%s", n > 1 ? "a" : "um"); | 731 | pr_info("L2C-310 errat%s", n > 1 ? "a" : "um"); |
| 731 | for (i = 0; i < n; i++) | 732 | for (i = 0; i < n; i++) |
| 732 | pr_cont(" %s", errata[i]); | 733 | pr_cont(" %s", errata[i]); |
| @@ -774,6 +775,11 @@ static const struct l2c_init_data l2c310_init_fns __initconst = { | |||
| 774 | }, | 775 | }, |
| 775 | }; | 776 | }; |
| 776 | 777 | ||
| 778 | void l2c310_flush_all(void) | ||
| 779 | { | ||
| 780 | l2c210_flush_all(); | ||
| 781 | }; | ||
| 782 | |||
| 777 | static int __init __l2c_init(const struct l2c_init_data *data, | 783 | static int __init __l2c_init(const struct l2c_init_data *data, |
| 778 | u32 aux_val, u32 aux_mask, u32 cache_id) | 784 | u32 aux_val, u32 aux_mask, u32 cache_id) |
| 779 | { | 785 | { |
| @@ -876,6 +882,8 @@ static int __init __l2c_init(const struct l2c_init_data *data, | |||
| 876 | pr_info("%s: CACHE_ID 0x%08x, AUX_CTRL 0x%08x\n", | 882 | pr_info("%s: CACHE_ID 0x%08x, AUX_CTRL 0x%08x\n", |
| 877 | data->type, cache_id, aux); | 883 | data->type, cache_id, aux); |
| 878 | 884 | ||
| 885 | litmus_setup_lockdown(l2x0_base, cache_id); | ||
| 886 | |||
| 879 | return 0; | 887 | return 0; |
| 880 | } | 888 | } |
| 881 | 889 | ||
diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl index a0ec8abc51f3..af5e3ccf8b31 100644 --- a/arch/x86/syscalls/syscall_32.tbl +++ b/arch/x86/syscalls/syscall_32.tbl | |||
| @@ -378,3 +378,4 @@ | |||
| 378 | 369 i386 release_ts sys_release_ts | 378 | 369 i386 release_ts sys_release_ts |
| 379 | 370 i386 null_call sys_null_call | 379 | 370 i386 null_call sys_null_call |
| 380 | 371 i386 get_current_budget sys_get_current_budget | 380 | 371 i386 get_current_budget sys_get_current_budget |
| 381 | 372 i386 test_call sys_test_call \ No newline at end of file | ||
diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl index 04f5b7483db3..e87042d413e9 100644 --- a/arch/x86/syscalls/syscall_64.tbl +++ b/arch/x86/syscalls/syscall_64.tbl | |||
| @@ -343,6 +343,7 @@ | |||
| 343 | 361 common release_ts sys_release_ts | 343 | 361 common release_ts sys_release_ts |
| 344 | 362 common null_call sys_null_call | 344 | 362 common null_call sys_null_call |
| 345 | 363 common get_current_budget sys_get_current_budget | 345 | 363 common get_current_budget sys_get_current_budget |
| 346 | 364 common test_call sys_test_call | ||
| 346 | 347 | ||
| 347 | 348 | ||
| 348 | # | 349 | # |
