2005-12-09 Hollis Blanchard <hollis@penguinppc.org>

* configure.ac: Accept `powerpc64' as host_cpu.
	(amd64): Rename to `biarch32'.

	* kern/powerpc/cache.S (grub_arch_sync_caches): Handle
	non-cacheline-aligned addresses.

	* kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
	(grub_dl_flush_cache): Likewise.  Only call `grub_arch_sync_caches'
	if `size' is non-zero.
This commit is contained in:
hollisb 2005-12-10 05:24:59 +00:00
parent b04216abba
commit be973c1ba6
5 changed files with 148 additions and 72 deletions

View file

@ -20,11 +20,15 @@
#define CACHE_LINE_BYTES 32
.text
.text
.align 2
.globl grub_arch_sync_caches
.align 2
.globl grub_arch_sync_caches
grub_arch_sync_caches:
/* `address' may not be CACHE_LINE_BYTES-aligned. */
andi. 6, 3, CACHE_LINE_BYTES - 1 /* Find the misalignment. */
add 4, 4, 6 /* Adjust `size' to compensate. */
/* Force the dcache lines to memory. */
li 5, 0
1: dcbst 5, 3