cpu_setup_pa6t.S 609 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2006-2007 PA Semi, Inc
  4. *
  5. * Maintained by: Olof Johansson <olof@lixom.net>
  6. */
  7. #include <asm/processor.h>
  8. #include <asm/page.h>
  9. #include <asm/cputable.h>
  10. #include <asm/ppc_asm.h>
  11. #include <asm/asm-offsets.h>
  12. #include <asm/cache.h>
  13. /* Right now, restore and setup are the same thing */
  14. _GLOBAL(__restore_cpu_pa6t)
  15. _GLOBAL(__setup_cpu_pa6t)
  16. /* Do nothing if not running in HV mode */
  17. mfmsr r0
  18. rldicl. r0,r0,4,63
  19. beqlr
  20. mfspr r0,SPRN_HID5
  21. ori r0,r0,0x38
  22. mtspr SPRN_HID5,r0
  23. mfspr r0,SPRN_LPCR
  24. ori r0,r0,0x7000
  25. mtspr SPRN_LPCR,r0
  26. blr