~ubuntu-branches/ubuntu/utopic/linux-ti-omap/utopic

« back to all changes in this revision

Viewing changes to arch/cris/include/arch-v32/arch/thread_info.h

  • Committer: Bazaar Package Importer
  • Author(s): Amit Kucheria, Amit Kucheria
  • Date: 2010-03-10 02:28:15 UTC
  • Revision ID: james.westby@ubuntu.com-20100310022815-7sd3gwvn5kenaq33
Tags: 2.6.33-500.1
[ Amit Kucheria ]

* Initial release of a 2.6.33-based OMAP kernel
* UBUNTU: [Upstream] Fix omap 1-wire driver compilation
* UBUNTU: ubuntu: AppArmor -- update to mainline 2010-03-04

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _ASM_CRIS_ARCH_THREAD_INFO_H
 
2
#define _ASM_CRIS_ARCH_THREAD_INFO_H
 
3
 
 
4
/* Return a thread_info struct. */
 
5
static inline struct thread_info *current_thread_info(void)
 
6
{
 
7
        struct thread_info *ti;
 
8
 
 
9
        __asm__ __volatile__ ("and.d $sp, %0" : "=r" (ti) : "0" (~8191UL));
 
10
        return ti;
 
11
}
 
12
 
 
13
#endif /* _ASM_CRIS_ARCH_THREAD_INFO_H */