launch.h 631 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. *
  4. */
  5. #ifndef _ASSEMBLER_
  6. struct cpulaunch {
  7. unsigned long pc;
  8. unsigned long gp;
  9. unsigned long sp;
  10. unsigned long a0;
  11. unsigned long _pad[3]; /* pad to cache line size to avoid thrashing */
  12. unsigned long flags;
  13. };
  14. #else
  15. #define LOG2CPULAUNCH 5
  16. #define LAUNCH_PC 0
  17. #define LAUNCH_GP 4
  18. #define LAUNCH_SP 8
  19. #define LAUNCH_A0 12
  20. #define LAUNCH_FLAGS 28
  21. #endif
  22. #define LAUNCH_FREADY 1
  23. #define LAUNCH_FGO 2
  24. #define LAUNCH_FGONE 4
  25. #define CPULAUNCH 0x00000f00
  26. #define NCPULAUNCH 8
  27. /* Polling period in count cycles for secondary CPU's */
  28. #define LAUNCHPERIOD 10000