cpu_setup_pa6t.S 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (C) 2006-2007 PA Semi, Inc
  3. *
  4. * Maintained by: Olof Johansson <olof@lixom.net>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. *
  19. */
  20. #include <asm/processor.h>
  21. #include <asm/page.h>
  22. #include <asm/cputable.h>
  23. #include <asm/ppc_asm.h>
  24. #include <asm/asm-offsets.h>
  25. #include <asm/cache.h>
  26. /* Right now, restore and setup are the same thing */
  27. _GLOBAL(__restore_cpu_pa6t)
  28. _GLOBAL(__setup_cpu_pa6t)
  29. /* Do nothing if not running in HV mode */
  30. mfmsr r0
  31. rldicl. r0,r0,4,63
  32. beqlr
  33. mfspr r0,SPRN_HID5
  34. ori r0,r0,0x38
  35. mtspr SPRN_HID5,r0
  36. mfspr r0,SPRN_LPCR
  37. ori r0,r0,0x7000
  38. mtspr SPRN_LPCR,r0
  39. blr