File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/processor.h.tar
Back
usr/src/linux-headers-5.15.0-141/arch/sh/include/asm/processor.h 0000644 00000010366 15030170746 0017676 0 ustar 00 /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_PROCESSOR_H #define __ASM_SH_PROCESSOR_H #include <asm/cpu-features.h> #include <asm/segment.h> #include <asm/cache.h> #ifndef __ASSEMBLY__ /* * CPU type and hardware bug flags. Kept separately for each CPU. * * Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry * in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c * for parsing the subtype in get_cpu_subtype(). */ enum cpu_type { /* SH-2 types */ CPU_SH7619, CPU_J2, /* SH-2A types */ CPU_SH7201, CPU_SH7203, CPU_SH7206, CPU_SH7263, CPU_SH7264, CPU_SH7269, CPU_MXG, /* SH-3 types */ CPU_SH7705, CPU_SH7706, CPU_SH7707, CPU_SH7708, CPU_SH7708S, CPU_SH7708R, CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712, CPU_SH7720, CPU_SH7721, CPU_SH7729, /* SH-4 types */ CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R, CPU_SH7760, CPU_SH4_202, CPU_SH4_501, /* SH-4A types */ CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SH7786, CPU_SH7723, CPU_SH7724, CPU_SH7757, CPU_SH7734, CPU_SHX3, /* SH4AL-DSP types */ CPU_SH7343, CPU_SH7722, CPU_SH7366, CPU_SH7372, /* Unknown subtype */ CPU_SH_NONE }; enum cpu_family { CPU_FAMILY_SH2, CPU_FAMILY_SH2A, CPU_FAMILY_SH3, CPU_FAMILY_SH4, CPU_FAMILY_SH4A, CPU_FAMILY_SH4AL_DSP, CPU_FAMILY_UNKNOWN, }; /* * TLB information structure * * Defined for both I and D tlb, per-processor. */ struct tlb_info { unsigned long long next; unsigned long long first; unsigned long long last; unsigned int entries; unsigned int step; unsigned long flags; }; struct sh_cpuinfo { unsigned int type, family; int cut_major, cut_minor; unsigned long loops_per_jiffy; unsigned long asid_cache; struct cache_info icache; /* Primary I-cache */ struct cache_info dcache; /* Primary D-cache */ struct cache_info scache; /* Secondary cache */ /* TLB info */ struct tlb_info itlb; struct tlb_info dtlb; unsigned int phys_bits; unsigned long flags; } __attribute__ ((aligned(L1_CACHE_BYTES))); extern struct sh_cpuinfo cpu_data[]; #define boot_cpu_data cpu_data[0] #define current_cpu_data cpu_data[smp_processor_id()] #define raw_current_cpu_data cpu_data[raw_smp_processor_id()] #define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory") #define cpu_relax() barrier() void default_idle(void); void stop_this_cpu(void *); /* Forward decl */ struct seq_operations; struct task_struct; extern struct pt_regs fake_swapper_regs; extern void cpu_init(void); extern void cpu_probe(void); /* arch/sh/kernel/process.c */ extern unsigned int xstate_size; extern void free_thread_xstate(struct task_struct *); extern struct kmem_cache *task_xstate_cachep; /* arch/sh/mm/alignment.c */ extern int get_unalign_ctl(struct task_struct *, unsigned long addr); extern int set_unalign_ctl(struct task_struct *, unsigned int val); #define GET_UNALIGN_CTL(tsk, addr) get_unalign_ctl((tsk), (addr)) #define SET_UNALIGN_CTL(tsk, val) set_unalign_ctl((tsk), (val)) /* arch/sh/mm/init.c */ extern unsigned int mem_init_done; /* arch/sh/kernel/setup.c */ const char *get_cpu_subtype(struct sh_cpuinfo *c); extern const struct seq_operations cpuinfo_op; /* thread_struct flags */ #define SH_THREAD_UAC_NOPRINT (1 << 0) #define SH_THREAD_UAC_SIGBUS (1 << 1) #define SH_THREAD_UAC_MASK (SH_THREAD_UAC_NOPRINT | SH_THREAD_UAC_SIGBUS) /* processor boot mode configuration */ #define MODE_PIN0 (1 << 0) #define MODE_PIN1 (1 << 1) #define MODE_PIN2 (1 << 2) #define MODE_PIN3 (1 << 3) #define MODE_PIN4 (1 << 4) #define MODE_PIN5 (1 << 5) #define MODE_PIN6 (1 << 6) #define MODE_PIN7 (1 << 7) #define MODE_PIN8 (1 << 8) #define MODE_PIN9 (1 << 9) #define MODE_PIN10 (1 << 10) #define MODE_PIN11 (1 << 11) #define MODE_PIN12 (1 << 12) #define MODE_PIN13 (1 << 13) #define MODE_PIN14 (1 << 14) #define MODE_PIN15 (1 << 15) int generic_mode_pins(void); int test_mode_pin(int pin); #ifdef CONFIG_VSYSCALL int vsyscall_init(void); #else #define vsyscall_init() do { } while (0) #endif /* * SH-2A has both 16 and 32-bit opcodes, do lame encoding checks. */ #ifdef CONFIG_CPU_SH2A extern unsigned int instruction_size(unsigned int insn); #else #define instruction_size(insn) (2) #endif void select_idle_routine(void); #endif /* __ASSEMBLY__ */ #include <asm/processor_32.h> #endif /* __ASM_SH_PROCESSOR_H */ usr/src/linux-headers-5.15.0-133/arch/h8300/include/asm/processor.h 0000644 00000006006 15030210725 0020013 0 ustar 00 /* SPDX-License-Identifier: GPL-2.0 */ /* * include/asm-h8300/processor.h * * Copyright (C) 2002 Yoshinori Sato * * Based on: linux/asm-m68nommu/processor.h * * Copyright (C) 1995 Hamish Macdonald */ #ifndef __ASM_H8300_PROCESSOR_H #define __ASM_H8300_PROCESSOR_H #include <linux/compiler.h> #include <asm/segment.h> #include <asm/ptrace.h> #include <asm/current.h> static inline unsigned long rdusp(void) { extern unsigned int _sw_usp; return _sw_usp; } static inline void wrusp(unsigned long usp) { extern unsigned int _sw_usp; _sw_usp = usp; } /* * User space process size: 3.75GB. This is hardcoded into a few places, * so don't change it unless you know what you are doing. */ #define TASK_SIZE (0xFFFFFFFFUL) #ifdef __KERNEL__ #define STACK_TOP TASK_SIZE #define STACK_TOP_MAX STACK_TOP #endif /* * This decides where the kernel will search for a free chunk of vm * space during mmap's. We won't be using it */ #define TASK_UNMAPPED_BASE 0 struct thread_struct { unsigned long ksp; /* kernel stack pointer */ unsigned long usp; /* user stack pointer */ unsigned long ccr; /* saved status register */ unsigned long esp0; /* points to SR of stack frame */ struct { unsigned short *addr; unsigned short inst; } breakinfo; }; #define INIT_THREAD { \ .ksp = sizeof(init_stack) + (unsigned long)init_stack, \ .usp = 0, \ .ccr = PS_S, \ .esp0 = 0, \ .breakinfo = { \ .addr = (unsigned short *)-1, \ .inst = 0 \ } \ } /* * Do necessary setup to start up a newly executed thread. * * pass the data segment into user programs if it exists, * it can't hurt anything as far as I can tell */ #if defined(CONFIG_CPU_H8300H) #define start_thread(_regs, _pc, _usp) \ do { \ (_regs)->pc = (_pc); \ (_regs)->ccr = 0x00; /* clear all flags */ \ (_regs)->er5 = current->mm->start_data; /* GOT base */ \ (_regs)->sp = ((unsigned long)(_usp)) - sizeof(unsigned long) * 3; \ } while (0) #endif #if defined(CONFIG_CPU_H8S) #define start_thread(_regs, _pc, _usp) \ do { \ (_regs)->pc = (_pc); \ (_regs)->ccr = 0x00; /* clear kernel flag */ \ (_regs)->exr = 0x78; /* enable all interrupts */ \ (_regs)->er5 = current->mm->start_data; /* GOT base */ \ /* 14 = space for retaddr(4), vector(4), er0(4) and exr(2) on stack */ \ (_regs)->sp = ((unsigned long)(_usp)) - 14; \ } while (0) #endif /* Forward declaration, a strange C thing */ struct task_struct; /* Free all resources held by a thread. */ static inline void release_thread(struct task_struct *dead_task) { } unsigned long get_wchan(struct task_struct *p); #define KSTK_EIP(tsk) \ ({ \ unsigned long eip = 0; \ if ((tsk)->thread.esp0 > PAGE_SIZE && \ MAP_NR((tsk)->thread.esp0) < max_mapnr) \ eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \ eip; }) #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp) #define cpu_relax() barrier() #define HARD_RESET_NOW() ({ \ local_irq_disable(); \ asm("jmp @@0"); \ }) #endif usr/src/linux-headers-5.15.0-142/arch/sh/include/asm/processor.h 0000644 00000010366 15030212604 0017665 0 ustar 00 /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_PROCESSOR_H #define __ASM_SH_PROCESSOR_H #include <asm/cpu-features.h> #include <asm/segment.h> #include <asm/cache.h> #ifndef __ASSEMBLY__ /* * CPU type and hardware bug flags. Kept separately for each CPU. * * Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry * in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c * for parsing the subtype in get_cpu_subtype(). */ enum cpu_type { /* SH-2 types */ CPU_SH7619, CPU_J2, /* SH-2A types */ CPU_SH7201, CPU_SH7203, CPU_SH7206, CPU_SH7263, CPU_SH7264, CPU_SH7269, CPU_MXG, /* SH-3 types */ CPU_SH7705, CPU_SH7706, CPU_SH7707, CPU_SH7708, CPU_SH7708S, CPU_SH7708R, CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712, CPU_SH7720, CPU_SH7721, CPU_SH7729, /* SH-4 types */ CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R, CPU_SH7760, CPU_SH4_202, CPU_SH4_501, /* SH-4A types */ CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SH7786, CPU_SH7723, CPU_SH7724, CPU_SH7757, CPU_SH7734, CPU_SHX3, /* SH4AL-DSP types */ CPU_SH7343, CPU_SH7722, CPU_SH7366, CPU_SH7372, /* Unknown subtype */ CPU_SH_NONE }; enum cpu_family { CPU_FAMILY_SH2, CPU_FAMILY_SH2A, CPU_FAMILY_SH3, CPU_FAMILY_SH4, CPU_FAMILY_SH4A, CPU_FAMILY_SH4AL_DSP, CPU_FAMILY_UNKNOWN, }; /* * TLB information structure * * Defined for both I and D tlb, per-processor. */ struct tlb_info { unsigned long long next; unsigned long long first; unsigned long long last; unsigned int entries; unsigned int step; unsigned long flags; }; struct sh_cpuinfo { unsigned int type, family; int cut_major, cut_minor; unsigned long loops_per_jiffy; unsigned long asid_cache; struct cache_info icache; /* Primary I-cache */ struct cache_info dcache; /* Primary D-cache */ struct cache_info scache; /* Secondary cache */ /* TLB info */ struct tlb_info itlb; struct tlb_info dtlb; unsigned int phys_bits; unsigned long flags; } __attribute__ ((aligned(L1_CACHE_BYTES))); extern struct sh_cpuinfo cpu_data[]; #define boot_cpu_data cpu_data[0] #define current_cpu_data cpu_data[smp_processor_id()] #define raw_current_cpu_data cpu_data[raw_smp_processor_id()] #define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory") #define cpu_relax() barrier() void default_idle(void); void stop_this_cpu(void *); /* Forward decl */ struct seq_operations; struct task_struct; extern struct pt_regs fake_swapper_regs; extern void cpu_init(void); extern void cpu_probe(void); /* arch/sh/kernel/process.c */ extern unsigned int xstate_size; extern void free_thread_xstate(struct task_struct *); extern struct kmem_cache *task_xstate_cachep; /* arch/sh/mm/alignment.c */ extern int get_unalign_ctl(struct task_struct *, unsigned long addr); extern int set_unalign_ctl(struct task_struct *, unsigned int val); #define GET_UNALIGN_CTL(tsk, addr) get_unalign_ctl((tsk), (addr)) #define SET_UNALIGN_CTL(tsk, val) set_unalign_ctl((tsk), (val)) /* arch/sh/mm/init.c */ extern unsigned int mem_init_done; /* arch/sh/kernel/setup.c */ const char *get_cpu_subtype(struct sh_cpuinfo *c); extern const struct seq_operations cpuinfo_op; /* thread_struct flags */ #define SH_THREAD_UAC_NOPRINT (1 << 0) #define SH_THREAD_UAC_SIGBUS (1 << 1) #define SH_THREAD_UAC_MASK (SH_THREAD_UAC_NOPRINT | SH_THREAD_UAC_SIGBUS) /* processor boot mode configuration */ #define MODE_PIN0 (1 << 0) #define MODE_PIN1 (1 << 1) #define MODE_PIN2 (1 << 2) #define MODE_PIN3 (1 << 3) #define MODE_PIN4 (1 << 4) #define MODE_PIN5 (1 << 5) #define MODE_PIN6 (1 << 6) #define MODE_PIN7 (1 << 7) #define MODE_PIN8 (1 << 8) #define MODE_PIN9 (1 << 9) #define MODE_PIN10 (1 << 10) #define MODE_PIN11 (1 << 11) #define MODE_PIN12 (1 << 12) #define MODE_PIN13 (1 << 13) #define MODE_PIN14 (1 << 14) #define MODE_PIN15 (1 << 15) int generic_mode_pins(void); int test_mode_pin(int pin); #ifdef CONFIG_VSYSCALL int vsyscall_init(void); #else #define vsyscall_init() do { } while (0) #endif /* * SH-2A has both 16 and 32-bit opcodes, do lame encoding checks. */ #ifdef CONFIG_CPU_SH2A extern unsigned int instruction_size(unsigned int insn); #else #define instruction_size(insn) (2) #endif void select_idle_routine(void); #endif /* __ASSEMBLY__ */ #include <asm/processor_32.h> #endif /* __ASM_SH_PROCESSOR_H */ usr/src/linux-headers-5.15.0-133/arch/openrisc/include/asm/processor.h 0000644 00000004441 15030213144 0021072 0 ustar 00 /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * OpenRISC Linux * * Linux architectural port borrowing liberally from similar works of * others. All original copyrights apply as per the original source * declaration. * * OpenRISC implementation: * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com> * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> * et al. */ #ifndef __ASM_OPENRISC_PROCESSOR_H #define __ASM_OPENRISC_PROCESSOR_H #include <asm/spr_defs.h> #include <asm/page.h> #include <asm/ptrace.h> #define STACK_TOP TASK_SIZE #define STACK_TOP_MAX STACK_TOP /* Kernel and user SR register setting */ #define KERNEL_SR (SPR_SR_DME | SPR_SR_IME | SPR_SR_ICE \ | SPR_SR_DCE | SPR_SR_SM) #define USER_SR (SPR_SR_DME | SPR_SR_IME | SPR_SR_ICE \ | SPR_SR_DCE | SPR_SR_IEE | SPR_SR_TEE) /* * User space process size. This is hardcoded into a few places, * so don't change it unless you know what you are doing. */ #define TASK_SIZE (0x80000000UL) /* This decides where the kernel will search for a free chunk of vm * space during mmap's. */ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) #ifndef __ASSEMBLY__ struct task_struct; struct thread_struct { }; /* * At user->kernel entry, the pt_regs struct is stacked on the top of the * kernel-stack. This macro allows us to find those regs for a task. * Notice that subsequent pt_regs stackings, like recursive interrupts * occurring while we're in the kernel, won't affect this - only the first * user->kernel transition registers are reached by this (i.e. not regs * for running signal handler) */ #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - STACK_FRAME_OVERHEAD)) - 1) /* * Dito but for the currently running task */ #define task_pt_regs(task) user_regs(task_thread_info(task)) #define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack) #define INIT_THREAD { } #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp) void start_thread(struct pt_regs *regs, unsigned long nip, unsigned long sp); void release_thread(struct task_struct *); unsigned long get_wchan(struct task_struct *p); #define cpu_relax() barrier() #endif /* __ASSEMBLY__ */ #endif /* __ASM_OPENRISC_PROCESSOR_H */ usr/src/linux-headers-5.15.0-142/arch/sparc/include/asm/processor.h 0000644 00000000347 15030226316 0020366 0 ustar 00 /* SPDX-License-Identifier: GPL-2.0 */ #ifndef ___ASM_SPARC_PROCESSOR_H #define ___ASM_SPARC_PROCESSOR_H #if defined(__sparc__) && defined(__arch64__) #include <asm/processor_64.h> #else #include <asm/processor_32.h> #endif #endif
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings