Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | arch/sh/kernel/cpu/sh4a/ubc.c |
static void sh4a_ubc_disable(struct arch_hw_breakpoint *info, int idx) {
__raw_writel(0, UBC_CBR(idx));
__raw_writel(0, UBC_CAR(idx));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/ubc.c |
static void sh4a_ubc_enable_all(unsigned long mask) {
int i;
for (i = 0; i < sh4a_ubc.num_events; i++)
if (mask & (1 << i))
__raw_writel(__raw_readl(UBC_CBR(i)) | UBC_CBR_CE, UBC_CBR(i));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/ubc.c |
static void sh4a_ubc_disable_all(void) {
int i;
for (i = 0; i < sh4a_ubc.num_events; i++)
__raw_writel(__raw_readl(UBC_CBR(i)) & ~UBC_CBR_CE, UBC_CBR(i));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/ubc.c |
static unsigned long sh4a_ubc_active_mask(void) {
unsigned long active = 0;
int i;
for (i = 0; i < sh4a_ubc.num_events; i++)
if (__raw_readl(UBC_CBR(i)) & UBC_CBR_CE)
active |= (1 << i);
return active;
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/ubc.c |
static void sh4a_ubc_clear_triggered_mask(unsigned long mask) {
__raw_writel(__raw_readl(UBC_CCMFR) & ~mask, UBC_CCMFR);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/shmobile/pm.c | void sh_mobile_call_standby(unsigned long mode) {
void *onchip_mem = (void *)RAM_BASE;
struct sh_sleep_data *sdp = onchip_mem;
void (*standby_onchip_mem)(unsigned long, unsigned long);
standby_onchip_mem = (void *)(sdp + 1);
atomic_notifier_call_chain(&sh_mobile_pre_sleep_notifier_list, mode, NULL);
/* f... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/dma-coherent.c |
void arch_dma_prep_coherent(struct page *page, size_t size) {
__flush_purge_region(page_address(page), size);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/dumpstack.c |
void printk_address(unsigned long address, int reliable) {
pr_cont(" [<%px>] %s%pS\n", (void *)address, reliable ? "" : "? ",
(void *)address);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/dumpstack.c |
void show_trace(struct task_struct *tsk, unsigned long *sp,
struct pt_regs *regs, const char *loglvl) {
if (regs && user_mode(regs))
return;
printk("%s\nCall trace:\n", loglvl);
unwind_stack(tsk, regs, sp, &print_trace_ops, (void *)loglvl);
pr_cont("\n");
if (!tsk)
tsk = current;
... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/dwarf.c | static inline int dwarf_read_addr(unsigned long *src, unsigned long *dst) {
u32 val = get_unaligned(src);
put_unaligned(val, dst);
return sizeof(unsigned long *);
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/dwarf.c | struct dwarf_fde *dwarf_lookup_fde(unsigned long pc) {
struct rb_node **rb_node = &fde_root.rb_node;
struct dwarf_fde *fde = NULL;
unsigned long flags;
spin_lock_irqsave(&dwarf_fde_lock, flags);
while (*rb_node) {
struct dwarf_fde *fde_tmp;
unsigned long tmp_start, tmp_end;
fde_tmp = rb_entry(*... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/dwarf.c | static int dwarf_parse_section(char *eh_frame_start, char *eh_frame_end,
struct module *mod) {
u32 entry_type;
void *p, *entry;
int count, err = 0;
unsigned long len = 0;
unsigned int c_entries, f_entries;
unsigned char *end;
c_entries = 0;
f_entries = 0;
entry = eh_fra... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/dwarf.c | static int __init dwarf_unwinder_init(void) {
int err = -ENOMEM;
dwarf_frame_cachep =
kmem_cache_create("dwarf_frames", sizeof(struct dwarf_frame), 0,
SLAB_PANIC | SLAB_HWCACHE_ALIGN, NULL);
dwarf_reg_cachep =
kmem_cache_create("dwarf_regs", sizeof(struct dwarf_reg), 0,
... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/ftrace.c |
static void clear_mod_flag(void) {
int old = atomic_read(&nmi_running);
for (;;) {
int new = old & ~MOD_CODE_WRITE_FLAG;
if (old == new)
break;
old = atomic_cmpxchg(&nmi_running, old, new);
}
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/ftrace.c |
static void wait_for_nmi(void) {
if (!atomic_read(&nmi_running))
return;
do {
cpu_relax();
} while (atomic_read(&nmi_running));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/ftrace.c |
int ftrace_update_ftrace_func(ftrace_func_t func) {
unsigned long ip = (unsigned long)(&ftrace_call) + MCOUNT_INSN_OFFSET;
unsigned char old[MCOUNT_INSN_SIZE], *new;
memcpy(old, (unsigned char *)ip, MCOUNT_INSN_SIZE);
new = ftrace_call_replace(ip, (unsigned long)func);
return ftrace_modify_code(ip, old, ne... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/ftrace.c |
int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec,
unsigned long addr) {
unsigned char *new, *old;
unsigned long ip = rec->ip;
old = ftrace_call_replace(ip, addr);
new = ftrace_nop_replace(ip);
return ftrace_modify_code(rec->ip, old, new);
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/ftrace.c |
int ftrace_enable_ftrace_graph_caller(void) {
unsigned long ip, old_addr, new_addr;
ip = (unsigned long)(&ftrace_graph_call) + GRAPH_INSN_OFFSET;
old_addr = (unsigned long)(&skip_trace);
new_addr = (unsigned long)(&ftrace_graph_caller);
return ftrace_mod(ip, old_addr, new_addr);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/hw_breakpoint.c | int arch_install_hw_breakpoint(struct perf_event *bp) {
struct arch_hw_breakpoint *info = counter_arch_bp(bp);
int i;
for (i = 0; i < sh_ubc->num_events; i++) {
struct perf_event **slot = this_cpu_ptr(&bp_per_reg[i]);
if (!*slot) {
*slot = bp;
break;
}
}
if (WARN_ONCE(i == sh_ubc->n... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/hw_breakpoint.c |
static int get_hbp_len(u16 hbp_len) {
unsigned int len_in_bytes = 0;
switch (hbp_len) {
case SH_BREAKPOINT_LEN_1:
len_in_bytes = 1;
break;
case SH_BREAKPOINT_LEN_2:
len_in_bytes = 2;
break;
case SH_BREAKPOINT_LEN_4:
len_in_bytes = 4;
break;
case SH_BREAKPOINT_LEN_8:
len_in_byte... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/hw_breakpoint.c | void flush_ptrace_hw_breakpoint(struct task_struct *tsk) {
int i;
struct thread_struct *t = &tsk->thread;
for (i = 0; i < sh_ubc->num_events; i++) {
unregister_hw_breakpoint(t->ptrace_bps[i]);
t->ptrace_bps[i] = NULL;
}
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/hw_breakpoint.c | static int __kprobes hw_breakpoint_handler(struct die_args *args) {
int cpu, i, rc = NOTIFY_STOP;
struct perf_event *bp;
unsigned int cmf, resume_mask;
cmf = sh_ubc->triggered_mask();
if (unlikely(!cmf))
return NOTIFY_DONE;
/*
* By default, resume all of the active channels.
*/
resume_mask = s... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/iomap.c |
unsigned int ioread32be(const void __iomem *addr) {
return be32_to_cpu(__raw_readl(addr));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/iomap.c |
void iowrite8(u8 val, void __iomem *addr) { writeb(val, addr); } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/iomap.c |
void iowrite16(u16 val, void __iomem *addr) { writew(val, addr); } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/iomap.c |
void iowrite32(u32 val, void __iomem *addr) { writel(val, addr); } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/iomap.c |
void iowrite32be(u32 val, void __iomem *addr) {
__raw_writel(cpu_to_be32(val), addr);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/iomap.c |
static inline void mmio_outsl(void __iomem *addr, const u32 *src, int count) {
while (--count >= 0) {
__raw_writel(*src, addr);
src++;
}
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/iomap.c |
void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) {
mmio_outsl(addr, src, count);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/io_trapped.c |
static unsigned long from_device(void *dst, const void *src,
unsigned long cnt) {
struct trapped_io *tiop;
unsigned long src_addr = (unsigned long)src;
unsigned long long tmp;
pr_debug("trapped io read 0x%08lx (%ld)\n", src_addr, cnt);
tiop = lookup_tiop(src_addr);
WARN_ON... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/irq.c | static inline void handle_one_irq(unsigned int irq) { generic_handle_irq(irq); }
#endif | [
0,
0
] |
Linux Kernel | arch/sh/kernel/irq.c | void migrate_irqs(void) {
unsigned int irq, cpu = smp_processor_id();
for_each_active_irq(irq) {
struct irq_data *data = irq_get_irq_data(irq);
if (irq_data_get_node(data) == cpu) {
const struct cpumask *mask = irq_data_get_affinity_mask(data);
unsigned int newcpu = cpumask_any_and(mask, cpu_o... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/irq_32.c | unsigned long notrace arch_local_save_flags(void) {
unsigned long flags;
__asm__ __volatile__("stc sr, %0\n\t"
"and #0xf0, %0\n\t"
: "=&z"(flags)
:
: "memory");
return flags;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/kdebugfs.c |
static int __init arch_kdebugfs_init(void) {
arch_debugfs_dir = debugfs_create_dir("sh", NULL);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/kgdb.c | static void undo_single_step(struct pt_regs *linux_regs) {
/* Use stepped_address in case we stopped elsewhere */
if (stepped_opcode != 0) {
__raw_writew(stepped_opcode, stepped_address);
flush_icache_range(stepped_address, stepped_address + 2);
}
stepped_opcode = 0;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/kgdb.c | int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
char *remcomInBuffer, char *remcomOutBuffer,
struct pt_regs *linux_regs) {
unsigned long addr;
char *ptr;
undo_single_step(linux_regs);
switch (remcomInBuffer[0]) {
case 'c':
... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/kprobes.c |
void __kprobes arch_arm_kprobe(struct kprobe *p) {
*p->addr = BREAKPOINT_INSTRUCTION;
flush_icache_range((unsigned long)p->addr,
(unsigned long)p->addr + sizeof(kprobe_opcode_t));
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/kprobes.c |
void __kprobes arch_disarm_kprobe(struct kprobe *p) {
*p->addr = p->opcode;
flush_icache_range((unsigned long)p->addr,
(unsigned long)p->addr + sizeof(kprobe_opcode_t));
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/kprobes.c | int __kprobes kprobe_handle_illslot(unsigned long pc) {
struct kprobe *p = get_kprobe((kprobe_opcode_t *)pc + 1);
if (p != NULL) {
printk("Warning: removing kprobe from delay slot: 0x%.8x\n",
(unsigned int)pc + 2);
unregister_kprobe(p);
return 0;
}
return 1;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/kprobes.c |
void __kprobes arch_remove_kprobe(struct kprobe *p) {
struct kprobe *saved = this_cpu_ptr(&saved_next_opcode);
if (saved->addr) {
arch_disarm_kprobe(p);
arch_disarm_kprobe(saved);
saved->addr = NULL;
saved->opcode = 0;
saved = this_cpu_ptr(&saved_next_opcode2);
if (saved->addr) {
a... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/kprobes.c |
static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb) {
kcb->prev_kprobe.kp = kprobe_running();
kcb->prev_kprobe.status = kcb->kprobe_status;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/kprobes.c |
static void __kprobes restore_previous_kprobe(struct kprobe_ctlblk *kcb) {
__this_cpu_write(current_kprobe, kcb->prev_kprobe.kp);
kcb->kprobe_status = kcb->prev_kprobe.status;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/kprobes.c | static void __used kretprobe_trampoline_holder(void) {
asm volatile(".globl __kretprobe_trampoline\n"
"__kretprobe_trampoline:\n\t"
"nop\n");
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/kprobes.c | int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs) {
regs->pc = __kretprobe_trampoline_handler(regs, NULL);
return 1;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/kprobes.c |
int __init arch_init_kprobes(void) { return register_kprobe(&trampoline_p); } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/machine_kexec.c |
static void kexec_info(struct kimage *image) {
int i;
printk("kexec information\n");
for (i = 0; i < image->nr_segments; i++) {
printk(" segment[%d]: 0x%08x - 0x%08x (0x%08x)\n", i,
(unsigned int)image->segment[i].mem,
(unsigned int)image->segment[i].mem + image->segment[i].memsz,
... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/machine_kexec.c |
void arch_crash_save_vmcoreinfo(void) {
#ifdef CONFIG_NUMA
VMCOREINFO_SYMBOL(node_data);
VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
#endif
#ifdef CONFIG_X2TLB
VMCOREINFO_CONFIG(X2TLB);
#endif
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/machvec.c |
static struct sh_machine_vector *__init get_mv_byname(const char *name) {
struct sh_machine_vector *mv;
for_each_mv(mv) if (strcasecmp(name, mv->mv_name) == 0) return mv;
return NULL;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/module.c |
int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
struct module *me) {
int ret = 0;
ret |= module_dwarf_finalize(hdr, sechdrs, me);
return ret;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/nmi_debug.c |
static int __init nmi_debug_setup(char *str) {
char *p, *sep;
register_die_notifier(&nmi_debug_nb);
if (*str != '=')
return 0;
for (p = str + 1; *p; p = sep + 1) {
sep = strchr(p, ',');
if (sep)
*sep = 0;
if (strcmp(p, "state") == 0)
nmi_actions |= NMI_SHOW_STATE;
else if (st... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/perf_event.c | int reserve_pmc_hardware(void) { return 0; } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/perf_event.c |
void release_pmc_hardware(void) {} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/perf_event.c |
static void sh_pmu_del(struct perf_event *event, int flags) {
struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
sh_pmu_stop(event, PERF_EF_UPDATE);
__clear_bit(event->hw.idx, cpuc->used_mask);
perf_event_update_userpage(event);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/perf_event.c |
static void sh_pmu_enable(struct pmu *pmu) {
if (!sh_pmu_initialized())
return;
sh_pmu->enable_all();
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/process.c |
void arch_task_cache_init(void) {
if (!xstate_size)
return;
task_xstate_cachep =
kmem_cache_create("task_xstate", xstate_size,
__alignof__(union thread_xstate), SLAB_PANIC, NULL);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/process_32.c |
void start_thread(struct pt_regs *regs, unsigned long new_pc,
unsigned long new_sp) {
regs->pr = 0;
regs->sr = SR_FD;
regs->pc = new_pc;
regs->regs[15] = new_sp;
free_thread_xstate(current);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/process_32.c | __notrace_funcgraph struct task_struct *__switch_to(struct task_struct *prev,
struct task_struct *next) {
struct thread_struct *next_t = &next->thread;
#if defined(CONFIG_STACKPROTECTOR) && !defined(CONFIG_SMP)
__stack_chk_guard = next->stack_canary;
#endif
un... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/ptrace_32.c |
void user_disable_single_step(struct task_struct *child) {
clear_tsk_thread_flag(child, TIF_SINGLESTEP);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/ptrace_32.c |
static int fpregs_set(struct task_struct *target,
const struct user_regset *regset, unsigned int pos,
unsigned int count, const void *kbuf,
const void __user *ubuf) {
int ret;
ret = init_fpu(target);
if (ret)
return ret;
set_stopped_child_... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/ptrace_32.c |
static int dspregs_active(struct task_struct *target,
const struct user_regset *regset) {
struct pt_regs *regs = task_pt_regs(target);
return regs->sr & SR_DSP ? regset->n : 0;
}
#endif | [
0,
0
] |
Linux Kernel | arch/sh/kernel/reboot.c | static void native_machine_restart(char *__unused) {
local_irq_disable();
__flush_tlb_global();
/* Address error with SR.BL=1 first. */
trigger_address_error();
/* If that fails or is unsupported, go for the watchdog next. */
watchdog_trigger_immediate();
/*
* Give up and sleep.
*/
while (1)
... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/reboot.c |
void machine_power_off(void) { machine_ops.power_off(); } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/reboot.c |
void machine_shutdown(void) { machine_ops.shutdown(); } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/reboot.c | void machine_crash_shutdown(struct pt_regs *regs) {
machine_ops.crash_shutdown(regs);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/setup.c |
int test_mode_pin(int pin) { return sh_mv.mv_mode_pins() & pin; } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/sh_bios.c |
void sh_bios_get_node_addr(unsigned char *node_addr) {
sh_bios_call(BIOS_CALL_ETH_NODE_ADDR, 0, (long)node_addr, 0, 0);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/sh_bios.c | static void sh_console_write(struct console *co, const char *s,
unsigned count) {
sh_bios_console_write(s, count);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/signal_32.c | static inline int restore_sigcontext_fpu(struct sigcontext __user *sc) {
struct task_struct *tsk = current;
if (!(boot_cpu_data.flags & CPU_HAS_FPU))
return 0;
set_used_math();
return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0],
sizeof(long) * (16 * 2 + 2));
... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/signal_32.c | static int restore_sigcontext(struct pt_regs *regs,
struct sigcontext __user *sc, int *r0_p) {
unsigned int err = 0;
#define COPY(x) err |= __get_user(regs->x, &sc->sc_##x)
COPY(regs[1]);
COPY(regs[2]);
COPY(regs[3]);
COPY(regs[4]);
COPY(regs[5]);
COPY(regs[6]);
COPY(regs[... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/signal_32.c | asmlinkage int sys_rt_sigreturn(void) {
struct pt_regs *regs = current_pt_regs();
struct rt_sigframe __user *frame =
(struct rt_sigframe __user *)regs->regs[15];
sigset_t set;
int r0;
current->restart_block.fn = do_no_restart_syscall;
if (!access_ok(frame, sizeof(*frame)))
goto badframe;
if (... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/signal_32.c | asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
unsigned long thread_info_flags) {
if (thread_info_flags & (_TIF_SIGPENDING | _TIF_NOTIFY_SIGNAL))
do_signal(regs, save_r0);
if (thread_info_flags & _TIF_NOTIFY_RESUME)
resume_user_mode_work(regs)... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/smp.c |
asmlinkage void start_secondary(void) {
unsigned int cpu = smp_processor_id();
struct mm_struct *mm = &init_mm;
enable_mmu();
mmgrab(mm);
mmget(mm);
current->active_mm = mm;
#ifdef CONFIG_MMU
enter_lazy_tlb(mm, current);
local_flush_tlb_all();
#endif
per_cpu_trap_init();
notify_cpu_starting(cpu)... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/smp.c | int __cpu_up(unsigned int cpu, struct task_struct *tsk) {
unsigned long timeout;
per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
stack_start.sp = tsk->thread.sp;
stack_start.thread_info = tsk->stack;
stack_start.bss_start = 0; /* don't clear bss for secondary cpus */
stack_start.start_kernel_fn = start_secondar... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/smp.c |
void smp_send_reschedule(int cpu) { mp_ops->send_ipi(cpu, SMP_MSG_RESCHEDULE); } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/smp.c | int setup_profiling_timer(unsigned int multiplier) { return 0; }
#ifdef CONFIG_MMU | [
0,
0
] |
Linux Kernel | arch/sh/kernel/smp.c |
void flush_tlb_all(void) { on_each_cpu(flush_tlb_all_ipi, 0, 1); } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/smp.c |
void flush_tlb_kernel_range(unsigned long start, unsigned long end) {
struct flush_tlb_data fd;
fd.addr1 = start;
fd.addr2 = end;
on_each_cpu(flush_tlb_kernel_range_ipi, (void *)&fd, 1);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/smp.c |
void flush_tlb_page(struct vm_area_struct *vma, unsigned long page) {
preempt_disable();
if ((atomic_read(&vma->vm_mm->mm_users) != 1) ||
(current->mm != vma->vm_mm)) {
struct flush_tlb_data fd;
fd.vma = vma;
fd.addr1 = page;
smp_call_function(flush_tlb_page_ipi, (void *)&fd, 1);
} else {
... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/stacktrace.c |
void save_stack_trace(struct stack_trace *trace) {
unsigned long *sp = (unsigned long *)current_stack_pointer;
unwind_stack(current, NULL, sp, &save_stack_ops, trace);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/sys_sh.c | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
unsigned long prot, unsigned long flags,
unsigned long fd, unsigned long pgoff) {
if (pgoff & ((1 << (PAGE_SHIFT - 12)) - 1))
return -EINVAL;
pgoff >>= PAGE_SHIFT - 12;
return ksys_mmap_pgof... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/sys_sh32.c |
asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
size_t count, long dummy, loff_t pos) {
return ksys_pread64(fd, buf, count, pos);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/topology.c |
int arch_update_cpu_topology(void) {
unsigned int cpu;
for_each_possible_cpu(cpu) cpu_core_map[cpu] = cpu_coregroup_map(cpu);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/traps.c |
void __noreturn die(const char *str, struct pt_regs *regs, long err) {
static int die_counter;
oops_enter();
spin_lock_irq(&die_lock);
console_verbose();
bust_spinlocks(1);
printk("%s: %04lx [#%d]\n", str, err & 0xffff, ++die_counter);
print_modules();
show_regs(regs);
printk("Process: %s (pid: %... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/traps.c | void die_if_no_fixup(const char *str, struct pt_regs *regs, long err) {
if (!user_mode(regs)) {
const struct exception_table_entry *fixup;
fixup = search_exception_tables(regs->pc);
if (fixup) {
regs->pc = fixup->fixup;
return;
}
die(str, regs, err);
}
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/traps.c |
int is_valid_bugaddr(unsigned long addr) {
insn_size_t opcode;
if (addr < PAGE_OFFSET)
return 0;
if (get_kernel_nofault(opcode, (insn_size_t *)addr))
return 0;
if (opcode == TRAPA_BUG_OPCODE)
return 1;
return 0;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/traps_32.c |
static inline void sign_extend(unsigned int count, unsigned char *dst) {
#ifdef __LITTLE_ENDIAN__
if ((count == 1) && dst[0] & 0x80) {
dst[1] = 0xff;
dst[2] = 0xff;
dst[3] = 0xff;
}
if ((count == 2) && dst[1] & 0x80) {
dst[2] = 0xff;
dst[3] = 0xff;
}
#else
if ((count == 1) && dst[3] & 0x8... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/traps_32.c | asmlinkage void do_address_error(struct pt_regs *regs,
unsigned long writeaccess,
unsigned long address) {
unsigned long error_code = 0;
insn_size_t instruction;
int tmp;
#ifdef CONFIG_CPU_HAS_SR_RB
error_code = lookup_exception_vector();
#endif... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/traps_32.c | int is_dsp_inst(struct pt_regs *regs) {
unsigned short inst = 0;
if (!(current_cpu_data.flags & CPU_HAS_DSP) || (regs->sr & SR_DSP))
return 0;
get_user(inst, ((unsigned short *)regs->pc));
inst &= 0xf000;
/* Check for any type of DSP or support instruction */
if ((inst == 0xf000) || (inst == 0x4000)... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/traps_32.c | asmlinkage void do_divide_error(unsigned long r4) {
int code;
switch (r4) {
case TRAP_DIVZERO_ERROR:
code = FPE_INTDIV;
break;
case TRAP_DIVOVF_ERROR:
code = FPE_INTOVF;
break;
default:
return;
}
force_sig_fault(SIGFPE, code, NULL);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/unwinder.c | static int unwinder_enqueue(struct unwinder *ops) {
struct list_head *tmp, *entry = &unwinder_list;
list_for_each(tmp, &unwinder_list) {
struct unwinder *o;
o = list_entry(tmp, struct unwinder, list);
if (o == ops)
return -EBUSY;
if (o->rating >= ops->rating)
entry = tmp;
}
list_a... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/unwinder.c | void unwind_stack(struct task_struct *task, struct pt_regs *regs,
unsigned long *sp, const struct stacktrace_ops *ops,
void *data) {
unsigned long flags;
if (unwinder_faulted) {
spin_lock_irqsave(&unwinder_lock, flags);
/* Make sure no one beat us to changing the unwind... | [
0,
0
] |
Linux Kernel | arch/sh/lib/delay.c |
inline void __const_udelay(unsigned long xloops) {
xloops *= 4;
__asm__("dmulu.l %0, %2\n\t"
"sts mach, %0"
: "=r"(xloops)
: "0"(xloops),
"r"(cpu_data[raw_smp_processor_id()].loops_per_jiffy * (HZ / 4))
: "macl", "mach");
__delay(++xloops);
} | [
0,
0
] |
Linux Kernel | arch/sh/lib/delay.c | void __udelay(unsigned long usecs) { __const_udelay(usecs * 0x000010c6); } | [
0,
0
] |
Linux Kernel | arch/sh/math-emu/math.c | static int fcmp_eq(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs,
int m, int n) {
if (CMP(CMP) == 0)
regs->sr |= 1;
else
regs->sr &= ~1;
return 0;
}
#define ARITH_X(SZ, OP, M, N) \
do { ... | [
0,
0
] |
Linux Kernel | arch/sh/math-emu/math.c |
static int fsub(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m,
int n) {
BOTH_PRmn(ARITH_X, SUB);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/sh/math-emu/math.c |
static int fmov_mem_reg(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs,
int m, int n) {
if (FPSCR_SZ) {
FMOV_EXT(n);
MREAD(FRn, Rm + 4);
n++;
MREAD(FRn, Rm);
} else {
MREAD(FRn, Rm);
}
return 0;
} | [
0,
0
] |
Linux Kernel | arch/sh/math-emu/math.c |
static int fmov_reg_idx(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs,
int m, int n) {
if (FPSCR_SZ) {
FMOV_EXT(m);
MWRITE(FRm, Rn + R0 + 4);
m++;
MWRITE(FRm, Rn + R0);
} else {
MWRITE(FRm, Rn + R0);
}
return 0;
} | [
0,
0
] |
Linux Kernel | arch/sh/math-emu/math.c |
static int fmov_reg_reg(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs,
int m, int n) {
if (FPSCR_SZ) {
FMOV_EXT(m);
FMOV_EXT(n);
DRn = DRm;
} else {
FRn = FRm;
}
return 0;
} | [
0,
0
] |
Linux Kernel | arch/sh/math-emu/math.c | static int fnop_mn(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs,
int m, int n) {
return -EINVAL;
}
#define NOTYETn(i) \
static int i(struct sh_fpu_soft_struct *fregs, int n) { \
printk(#i " not yet don... | [
0,
0
] |
Linux Kernel | arch/sh/math-emu/math.c |
static int fld1(struct sh_fpu_soft_struct *fregs, int n) {
FRn = (_FP_EXPBIAS_S << (_FP_FRACBITS_S - 1));
return 0;
} | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.