current.h 523 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_CURRENT_H
  9. #define _ASM_MICROBLAZE_CURRENT_H
  10. # ifndef __ASSEMBLY__
  11. /*
  12. * Dedicate r31 to keeping the current task pointer
  13. */
  14. register struct task_struct *current asm("r31");
  15. # define get_current() current
  16. # endif /* __ASSEMBLY__ */
  17. #endif /* _ASM_MICROBLAZE_CURRENT_H */