summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-02-08 18:05:23 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-02-08 18:05:23 -0800
commitd48bb2b249d996587cfe6e39e810a9805d013abe (patch)
tree7fa202631cf34d0b7d46e2c6a865b3232d9d256c
parent4f089e2e47f023d51ebba87ecf21c944302115cc (diff)
downloadsyslinux-3.36-pre10.tar.gz
Set up the LRU chain correctly (d'oh!)syslinux-3.36-pre10syslinux-3.36
-rw-r--r--cache.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.inc b/cache.inc
index 95c5f48e..47d815f6 100644
--- a/cache.inc
+++ b/cache.inc
@@ -33,6 +33,7 @@ initcache:
mov [di+cptr.sector],eax ; Zero sector number
mov [di+cptr.prev],bx ; Previous pointer
mov [bx+cptr.next],di ; Previous entry's next pointer
+ mov bx,di
add di,cptr_size
loop .loop
ret