diff --git a/sys/arch/cobalt/stand/boot/cache.c b/sys/arch/cobalt/stand/boot/cache.c index 503eaf9e1e22..3d64e28e8da5 100644 --- a/sys/arch/cobalt/stand/boot/cache.c +++ b/sys/arch/cobalt/stand/boot/cache.c @@ -1,4 +1,4 @@ -/* $NetBSD: cache.c,v 1.1 2007/10/30 15:07:08 tsutsui Exp $ */ +/* $NetBSD: cache.c,v 1.2 2007/10/30 16:38:54 tsutsui Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -53,8 +53,8 @@ pdcache_inv(uint32_t va, u_int size) { uint32_t eva; - va = trunc_line(va); eva = round_line(va + size); + va = trunc_line(va); while (va < eva) { cache_op_r4k_line(va, CACHE_R4K_D|CACHEOP_R4K_HIT_INV); @@ -67,8 +67,8 @@ pdcache_wb(uint32_t va, u_int size) { uint32_t eva; - va = trunc_line(va); eva = round_line(va + size); + va = trunc_line(va); while (va < eva) { cache_op_r4k_line(va, CACHE_R4K_D|CACHEOP_R4K_HIT_WB); @@ -81,8 +81,8 @@ pdcache_wbinv(uint32_t va, u_int size) { uint32_t eva; - va = trunc_line(va); eva = round_line(va + size); + va = trunc_line(va); while (va < eva) { cache_op_r4k_line(va, CACHE_R4K_D|CACHEOP_R4K_HIT_WB_INV); diff --git a/sys/arch/cobalt/stand/boot/tlp.c b/sys/arch/cobalt/stand/boot/tlp.c index e9708e0af2c3..b57995b6e473 100644 --- a/sys/arch/cobalt/stand/boot/tlp.c +++ b/sys/arch/cobalt/stand/boot/tlp.c @@ -1,4 +1,4 @@ -/* $NetBSD: tlp.c,v 1.1 2007/10/30 15:07:08 tsutsui Exp $ */ +/* $NetBSD: tlp.c,v 1.2 2007/10/30 16:38:54 tsutsui Exp $ */ /*- * Copyright (c) 2007 The NetBSD Foundation, Inc. @@ -255,7 +255,7 @@ tlp_send(void *dev, char *buf, u_int len) struct desc *TxD; u_int loop; -#if 0 /* unaligned TX buf might be problematic? */ +#if 1 wb(buf, len); TxD = &l->TxD; TxD->xd3 = htole32(VTOPHYS(TxD));