@@ -66,7 +66,7 @@ an IP address on the originating network or subnetwork.
.br
\- a free dynamic address exists on the originating network or subnetwork.
.PP
-A BOOTP request is honored it all of the following are true:
+A BOOTP request is honored if all of the following are true:
\- there exists an NDB entry
containing both the ethernet address of the requester and
@@ -39,6 +39,8 @@
enum {
Debug = 0,
+ Nopage = ~0ul, /* cache is empty */
+
/* vendors */
Hynix = 0xad,
Samsung = 0xec,
@@ -355,6 +357,9 @@ erasezone(Flash *f, Flashregion *r, ulong offset)
nandaddr(f, page>>16);
nandcmd(f, Erasestart);
+ /* invalidate cache on any erasure (slight overkill) */
+ cache.pageno = Nopage;
/* have to wait until flash is done. typically ~2ms */
delay(1);
nandcmd(f, Readstatus);
@@ -653,6 +658,7 @@ reset(Flash *f)
f->suspend = nil;
f->resume = nil;
f->sort = "nand";
return idchip(f);
}