diff options
| author | Tom Rini <trini@ti.com> | 2012-12-07 06:43:40 -0700 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2012-12-07 08:47:59 -0700 | 
| commit | fd4d564b3c80b111f18c93adb14233a6a7ddb0e9 (patch) | |
| tree | a42d63aae4f7c07f441321c18098a85cbcc45dee /arch/x86/include/asm/io.h | |
| parent | 13d43555a9154cf12255023c47e80d947d7d0604 (diff) | |
| parent | ac426b7290e3a96c97fbc093f15cd0660e0edaf2 (diff) | |
| download | olio-uboot-2014.01-fd4d564b3c80b111f18c93adb14233a6a7ddb0e9.tar.xz olio-uboot-2014.01-fd4d564b3c80b111f18c93adb14233a6a7ddb0e9.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'arch/x86/include/asm/io.h')
| -rw-r--r-- | arch/x86/include/asm/io.h | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 84a638da7..86bac90e8 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -1,6 +1,8 @@  #ifndef _ASM_IO_H  #define _ASM_IO_H +#include <compiler.h> +  /*   * This file contains the definitions for the x86 IO instructions   * inb/inw/inl/outb/outw/outl and the "string versions" of the same @@ -220,7 +222,7 @@ static inline void sync(void)  static inline void *  map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)  { -	return (void *)paddr; +	return (void *)(uintptr_t)paddr;  }  /* @@ -233,7 +235,7 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags)  static inline phys_addr_t virt_to_phys(void * vaddr)  { -	return (phys_addr_t)(vaddr); +	return (phys_addr_t)(uintptr_t)(vaddr);  }  /* |