···11-#ifdef __uClinux__22-#include "current_no.h"11+#ifndef _M68K_CURRENT_H22+#define _M68K_CURRENT_H33+44+#ifdef CONFIG_MMU55+66+register struct task_struct *current __asm__("%a2");77+38#else44-#include "current_mm.h"55-#endif99+1010+/*1111+ * Rather than dedicate a register (as the m68k source does), we1212+ * just keep a global, we should probably just change it all to be1313+ * current and lose _current_task.1414+ */1515+#include <linux/thread_info.h>1616+1717+struct task_struct;1818+1919+static inline struct task_struct *get_current(void)2020+{2121+ return(current_thread_info()->task);2222+}2323+2424+#define current get_current()2525+2626+#endif /* CONFNIG_MMU */2727+2828+#endif /* !(_M68K_CURRENT_H) */
···11-#ifndef _M68KNOMMU_CURRENT_H22-#define _M68KNOMMU_CURRENT_H33-/*44- * current.h55- * (C) Copyright 2000, Lineo, David McCullough <davidm@uclinux.org>66- * (C) Copyright 2002, Greg Ungerer (gerg@snapgear.com)77- *88- * rather than dedicate a register (as the m68k source does), we99- * just keep a global, we should probably just change it all to be1010- * current and lose _current_task.1111- */1212-1313-#include <linux/thread_info.h>1414-1515-struct task_struct;1616-1717-static inline struct task_struct *get_current(void)1818-{1919- return(current_thread_info()->task);2020-}2121-2222-#define current get_current()2323-2424-#endif /* _M68KNOMMU_CURRENT_H */