summaryrefslogtreecommitdiffstats
path: root/arch/csky/mm/fault.c
Commit message (Collapse)AuthorAgeFilesLines
* signal: Remove the task parameter from force_sig_faultEric W. Biederman2019-05-291-2/+2
| | | | | | | | | | | | | | | | | | | | | As synchronous exceptions really only make sense against the current task (otherwise how are you synchronous) remove the task parameter from from force_sig_fault to make it explicit that is what is going on. The two known exceptions that deliver a synchronous exception to a stopped ptraced task have already been changed to force_sig_fault_to_task. The callers have been changed with the following emacs regular expression (with obvious variations on the architectures that take more arguments) to avoid typos: force_sig_fault[(]\([^,]+\)[,]\([^,]+\)[,]\([^,]+\)[,]\W+current[)] -> force_sig_fault(\1,\2,\3) Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
* csky: Fixup compile warningGuo Ren2019-04-221-1/+1
| | | | | | | | The function of __va() will return "void *", but the pgd_base is unsigned long. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Cc: Arnd Bergmann <arnd@arndb.de>
* csky: add page fault perf event supportMao Han2019-04-221-2/+10
| | | | | | | | | | | | This patch add support for page fault count, major fault count and minorfault count. Without this patch page faults are not sampled for perf event. Performance counter stats for '/usr/lib/perf-test/callchain_test': 0 page-faults # 0.000 K/sec Signed-off-by: Mao Han <han_mao@c-sky.com> Signed-off-by: Guo Ren <ren_guo@c-sky.com>
* csky: Use va_pa_offset instead of phys_offsetGuo Ren2019-04-221-1/+1
| | | | | | | | | | | The name of phys_offset is so common for global export and it may conflict with some local name. So change phys_offset to va_pa_offset which also used by riscv. Also use __pa() and __va() instead of using phys_offset directly. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Cc: Arnd Bergmann <arnd@arndb.de>
* csky: mm/fault.c: Remove duplicate headerJagadeesh Pagadala2019-04-221-1/+0
| | | | | | | Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala <jagdsh.linux@gmail.com> Signed-off-by: Guo Ren <ren_guo@c-sky.com>
* csky: remove unused members in processor.hGuo Ren2018-12-311-3/+0
| | | | | | | | Cleanup struct cpuinfo_csky and struct thread_struct, remove all esp0 related code. We could get pt_regs from sp and backtrace could use fp in switch_stack. Signed-off-by: Guo Ren <ren_guo@c-sky.com>
* csky: optimize kernel panic print.Guo Ren2018-12-311-2/+2
| | | | | | | Use STACKTRACE to optimize panic print more pretty and align registers printing. Signed-off-by: Guo Ren <ren_guo@c-sky.com>
* csky: Exception handling and mm-faultGuo Ren2018-10-251-0/+212
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
OpenPOWER on IntegriCloud