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)
5 asm volatile("outl %0,%1" : : "a" (v), "dN" (port));
7 -static inline u32 inl(u32 port)
8 +static inline u32 inl(u16 port)
11 asm volatile("inl %1,%0" : "=a" (v) : "dN" (port));
12 --- a/arch/x86/boot/pm.c
13 +++ b/arch/x86/boot/pm.c
17 #include <asm/segment.h>
18 +#ifdef CONFIG_X86_RDC321X
19 +#include <asm/rdc321x_defs.h>
23 * Invoke the realmode switch hook if present; otherwise
24 @@ -112,6 +115,16 @@ void go_to_protected_mode(void)
28 +#ifdef CONFIG_X86_RDC321X
32 + outl(0x80003840, RDC3210_CFGREG_ADDR);
33 + bootctl = inl(RDC3210_CFGREG_DATA) | 0x07ff0000;
34 + outl(bootctl, RDC3210_CFGREG_DATA);
38 /* Reset coprocessor (IGNNE#) */