diff options
author | Tom Rini <trini@konsulko.com> | 2016-02-01 16:58:46 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-02-01 16:58:46 -0500 |
commit | d2427caf54a08ec80e8bfa5ef2c0b4377da55bab (patch) | |
tree | cccf177a353a50be781364a69f957e2a116cac45 /arch/mips/lib | |
parent | 735b1a2e5a61401868bb35702b6e5e18bce6eb97 (diff) | |
parent | 7d514a7407756d96996960c2ae539a4b464c65bc (diff) | |
download | blackbird-obmc-uboot-d2427caf54a08ec80e8bfa5ef2c0b4377da55bab.tar.gz blackbird-obmc-uboot-d2427caf54a08ec80e8bfa5ef2c0b4377da55bab.zip |
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'arch/mips/lib')
-rw-r--r-- | arch/mips/lib/Makefile | 1 | ||||
-rw-r--r-- | arch/mips/lib/cache.c | 8 | ||||
-rw-r--r-- | arch/mips/lib/io.c | 12 |
3 files changed, 8 insertions, 13 deletions
diff --git a/arch/mips/lib/Makefile b/arch/mips/lib/Makefile index ac536da674..b7ce5df765 100644 --- a/arch/mips/lib/Makefile +++ b/arch/mips/lib/Makefile @@ -7,7 +7,6 @@ obj-y += cache.o obj-y += cache_init.o -obj-y += io.o obj-$(CONFIG_CMD_BOOTM) += bootm.o diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c index bf8ff598ac..7482005b67 100644 --- a/arch/mips/lib/cache.c +++ b/arch/mips/lib/cache.c @@ -95,6 +95,10 @@ void flush_dcache_range(ulong start_addr, ulong stop) const void *addr = (const void *)(start_addr & ~(lsize - 1)); const void *aend = (const void *)((stop - 1) & ~(lsize - 1)); + /* aend will be miscalculated when size is zero, so we return here */ + if (start_addr == stop) + return; + while (1) { mips_cache(HIT_WRITEBACK_INV_D, addr); if (addr == aend) @@ -109,6 +113,10 @@ void invalidate_dcache_range(ulong start_addr, ulong stop) const void *addr = (const void *)(start_addr & ~(lsize - 1)); const void *aend = (const void *)((stop - 1) & ~(lsize - 1)); + /* aend will be miscalculated when size is zero, so we return here */ + if (start_addr == stop) + return; + while (1) { mips_cache(HIT_INVALIDATE_D, addr); if (addr == aend) diff --git a/arch/mips/lib/io.c b/arch/mips/lib/io.c deleted file mode 100644 index b2d4a094da..0000000000 --- a/arch/mips/lib/io.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * (C) Copyright 2003 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -/* - * mips_io_port_base is the begin of the address space to which x86 style - * I/O ports are mapped. - */ -const unsigned long mips_io_port_base = -1; |