Fix my stupid bug in cache flush code and remove one kludge for it.
This commit is contained in:
parent
fef32d862e
commit
4501e92c93
@ -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);
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user