summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-02-01 22:18:44 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-02-01 22:18:44 -0800
commitab021ddc666e1708185ec7014382586cf0bab17d (patch)
tree0ea5616e77a02c48a8f7356266eb071002a154e3
parentbec02e93bf31d7ce54724691448fb158a07d2632 (diff)
downloadsyslinux-ab021ddc666e1708185ec7014382586cf0bab17d.tar.gz
Remember which sector we cached!
-rw-r--r--cache.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.inc b/cache.inc
index 8d471bf6..95c5f48e 100644
--- a/cache.inc
+++ b/cache.inc
@@ -65,6 +65,7 @@ getcachesector:
push gs
pop es
mov bx,[CachePtrs+cptr.next] ; "Next most recent than head node"
+ mov [bx+cptr.sector],eax
mov si,bx
sub bx,CachePtrs+cptr_size
shl bx,SECTOR_SHIFT-cptr_size_lg2 ; Buffer address