005-fix_amit_breakage.patch 877 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- a/arch/x86/boot/boot.h
  2. +++ b/arch/x86/boot/boot.h
  3. @@ -62,7 +62,7 @@ static inline void outl(u32 v, u16 port)
  4. {
  5. asm volatile("outl %0,%1" : : "a" (v), "dN" (port));
  6. }
  7. -static inline u32 inl(u32 port)
  8. +static inline u32 inl(u16 port)
  9. {
  10. u32 v;
  11. asm volatile("inl %1,%0" : "=a" (v) : "dN" (port));
  12. --- a/arch/x86/boot/pm.c
  13. +++ b/arch/x86/boot/pm.c
  14. @@ -14,6 +14,9 @@
  15. #include "boot.h"
  16. #include <asm/segment.h>
  17. +#ifdef CONFIG_X86_RDC
  18. +#include <asm/mach-rdc/rdc321x_defs.h>
  19. +#endif
  20. /*
  21. * Invoke the realmode switch hook if present; otherwise
  22. @@ -156,6 +159,16 @@ void go_to_protected_mode(void)
  23. die();
  24. }
  25. +#ifdef CONFIG_X86_RDC
  26. + {
  27. + u32 bootctl;
  28. +
  29. + outl(0x80003840, RDC3210_CFGREG_ADDR);
  30. + bootctl = inl(RDC3210_CFGREG_DATA) | 0x07ff0000;
  31. + outl(bootctl, RDC3210_CFGREG_DATA);
  32. + }
  33. +#endif
  34. +
  35. /* Reset coprocessor (IGNNE#) */
  36. reset_coprocessor();