processor.h (97f130106f2987be90a393c8527671a8cdc432e8) | processor.h (05cdf457477d6603b207d91873f0a3d4c7f8c1cd) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 4 * Copyright (C) 2008-2009 PetaLogix 5 * Copyright (C) 2006 Atmark Techno, Inc. 6 */ 7 8#ifndef _ASM_MICROBLAZE_PROCESSOR_H --- 17 unchanged lines hidden (view full) --- 26/* Do necessary setup to start up a newly executed thread. */ 27void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp); 28 29extern void ret_from_fork(void); 30extern void ret_from_kernel_thread(void); 31 32# endif /* __ASSEMBLY__ */ 33 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 4 * Copyright (C) 2008-2009 PetaLogix 5 * Copyright (C) 2006 Atmark Techno, Inc. 6 */ 7 8#ifndef _ASM_MICROBLAZE_PROCESSOR_H --- 17 unchanged lines hidden (view full) --- 26/* Do necessary setup to start up a newly executed thread. */ 27void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp); 28 29extern void ret_from_fork(void); 30extern void ret_from_kernel_thread(void); 31 32# endif /* __ASSEMBLY__ */ 33 |
34# ifndef CONFIG_MMU | |
35/* | 34/* |
36 * User space process size: memory size 37 * 38 * TASK_SIZE on MMU cpu is usually 1GB. However, on no-MMU arch, both 39 * user processes and the kernel is on the same memory region. They 40 * both share the memory space and that is limited by the amount of 41 * physical memory. thus, we set TASK_SIZE == amount of total memory. 42 */ 43# define TASK_SIZE (0x81000000 - 0x80000000) 44 45/* 46 * This decides where the kernel will search for a free chunk of vm 47 * space during mmap's. We won't be using it 48 */ 49# define TASK_UNMAPPED_BASE 0 50 51/* definition in include/linux/sched.h */ 52struct task_struct; 53 54/* thread_struct is gone. use thread_info instead. */ 55struct thread_struct { }; 56# define INIT_THREAD { } 57 58/* Free all resources held by a thread. */ 59static inline void release_thread(struct task_struct *dead_task) 60{ 61} 62 63extern unsigned long get_wchan(struct task_struct *p); 64 65# define KSTK_EIP(tsk) (0) 66# define KSTK_ESP(tsk) (0) 67 68# else /* CONFIG_MMU */ 69 70/* | |
71 * This is used to define STACK_TOP, and with MMU it must be below 72 * kernel base to select the correct PGD when handling MMU exceptions. 73 */ 74# define TASK_SIZE (CONFIG_KERNEL_START) 75 76/* 77 * This decides where the kernel will search for a free chunk of vm 78 * space during mmap's. --- 38 unchanged lines hidden (view full) --- 117 ((void *)task_pt_regs(tsk)) 118 119# define task_sp(task) (task_regs(task)->r1) 120# define task_pc(task) (task_regs(task)->pc) 121/* Grotty old names for some. */ 122# define KSTK_EIP(task) (task_pc(task)) 123# define KSTK_ESP(task) (task_sp(task)) 124 | 35 * This is used to define STACK_TOP, and with MMU it must be below 36 * kernel base to select the correct PGD when handling MMU exceptions. 37 */ 38# define TASK_SIZE (CONFIG_KERNEL_START) 39 40/* 41 * This decides where the kernel will search for a free chunk of vm 42 * space during mmap's. --- 38 unchanged lines hidden (view full) --- 81 ((void *)task_pt_regs(tsk)) 82 83# define task_sp(task) (task_regs(task)->r1) 84# define task_pc(task) (task_regs(task)->pc) 85/* Grotty old names for some. */ 86# define KSTK_EIP(task) (task_pc(task)) 87# define KSTK_ESP(task) (task_sp(task)) 88 |
89/* FIXME */ 90# define deactivate_mm(tsk, mm) do { } while (0) 91 |
|
125# define STACK_TOP TASK_SIZE 126# define STACK_TOP_MAX STACK_TOP 127 128#ifdef CONFIG_DEBUG_FS 129extern struct dentry *of_debugfs_root; 130#endif 131 132# endif /* __ASSEMBLY__ */ | 92# define STACK_TOP TASK_SIZE 93# define STACK_TOP_MAX STACK_TOP 94 95#ifdef CONFIG_DEBUG_FS 96extern struct dentry *of_debugfs_root; 97#endif 98 99# endif /* __ASSEMBLY__ */ |
133# endif /* CONFIG_MMU */ | |
134#endif /* _ASM_MICROBLAZE_PROCESSOR_H */ | 100#endif /* _ASM_MICROBLAZE_PROCESSOR_H */ |