launch.h 592 B

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