From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/h8300/include/asm/current.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ANDROID_3.4.5/arch/h8300/include/asm/current.h (limited to 'ANDROID_3.4.5/arch/h8300/include/asm/current.h') diff --git a/ANDROID_3.4.5/arch/h8300/include/asm/current.h b/ANDROID_3.4.5/arch/h8300/include/asm/current.h new file mode 100644 index 00000000..57d74ee5 --- /dev/null +++ b/ANDROID_3.4.5/arch/h8300/include/asm/current.h @@ -0,0 +1,25 @@ +#ifndef _H8300_CURRENT_H +#define _H8300_CURRENT_H +/* + * current.h + * (C) Copyright 2000, Lineo, David McCullough + * (C) Copyright 2002, Greg Ungerer (gerg@snapgear.com) + * + * rather than dedicate a register (as the m68k source does), we + * just keep a global, we should probably just change it all to be + * current and lose _current_task. + */ + +#include +#include + +struct task_struct; + +static inline struct task_struct *get_current(void) +{ + return(current_thread_info()->task); +} + +#define current get_current() + +#endif /* _H8300_CURRENT_H */ -- cgit