/* SPDX-License-Identifier: GPL-2.0 */1#ifndef _M68K_CURRENT_H2#define _M68K_CURRENT_H34#ifdef CONFIG_MMU56register struct task_struct *current __asm__("%a2");78#else910/*11* Rather than dedicate a register (as the m68k source does), we12* just keep a global, we should probably just change it all to be13* current and lose _current_task.14*/15#include <linux/thread_info.h>1617struct task_struct;1819static inline struct task_struct *get_current(void)20{21return(current_thread_info()->task);22}2324#define current get_current()2526#endif /* CONFIG_MMU */2728register unsigned long current_stack_pointer __asm__("sp");2930#endif /* !(_M68K_CURRENT_H) */313233