Export the cache_seg to 32-bit code as core_cache_buf
authorH. Peter Anvin <hpa@zytor.com>
Tue, 2 Jun 2009 14:36:43 +0000 (07:36 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 2 Jun 2009 14:36:43 +0000 (07:36 -0700)
Export the cache_seg to 32-bit code as core_cache_buf, so we can port
the cache to 32-bit code without porting its 16-bit clients immediately.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/include/core.h
core/layout.inc

index 91bd2d8..0975ebf 100644 (file)
@@ -4,6 +4,8 @@
 #include <com32.h>
 
 extern char core_xfer_buf[65536];
+extern char core_cache_buf[65536];
+
 void __cdecl core_intcall(uint8_t, const com32sys_t *, com32sys_t *);
 void __cdecl core_farcall(uint32_t, const com32sys_t *, com32sys_t *);
 int __cdecl core_cfarcall(uint32_t, const void *, uint32_t);
index fe292b1..ec011f3 100644 (file)
@@ -127,7 +127,9 @@ auxseg              resb aux_size
 ; ISOLINUX doesn't have a block cache yet
 real_mode_seg  equ 3000h
 %else
+               global cache_seg, core_cache_buf
 cache_seg      equ 3000h               ; 64K area for metadata cache
+core_cache_buf equ cache_seg << 4
 real_mode_seg  equ 4000h
 
 pktbuf_seg     equ cache_seg           ; PXELINUX packet buffers