current.h 758 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __UM_CURRENT_H
  6. #define __UM_CURRENT_H
  7. #ifndef __ASSEMBLY__
  8. #include "asm/page.h"
  9. #include "linux/thread_info.h"
  10. #define current (current_thread_info()->task)
  11. /*Backward compatibility - it's used inside arch/um.*/
  12. #define current_thread current_thread_info()
  13. #endif /* __ASSEMBLY__ */
  14. #endif
  15. /*
  16. * Overrides for Emacs so that we follow Linus's tabbing style.
  17. * Emacs will notice this stuff at the end of the file and automatically
  18. * adjust the settings for this buffer only. This must remain at the end
  19. * of the file.
  20. * ---------------------------------------------------------------------------
  21. * Local variables:
  22. * c-file-style: "linux"
  23. * End:
  24. */