From 651fc2a11d8a95e8d8f9e5aa6f788c2b030499f4 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 31 May 2009 11:12:48 -0700 Subject: [PATCH] core: export a symbol for the raw address of xfer_buf_seg Export a symbol (core_xfer_buf) for the linear address of the xfer_bug_seg, for easier use in 32-bit code. Signed-off-by: H. Peter Anvin --- core/include/core.h | 1 + core/layout.inc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/include/core.h b/core/include/core.h index bfbd607..714196e 100644 --- a/core/include/core.h +++ b/core/include/core.h @@ -3,6 +3,7 @@ #include +extern char core_xfer_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); diff --git a/core/layout.inc b/core/layout.inc index 38238b3..e2c7cbc 100644 --- a/core/layout.inc +++ b/core/layout.inc @@ -96,8 +96,9 @@ RBFG_brainfuck: resb 2048 ; Bigger than an Ethernet packet... ; ; This stuff really should come from the linker... ; - global xfer_buf_seg + global xfer_buf_seg, core_xfer_buf xfer_buf_seg equ 2000h +core_xfer_buf equ xfer_buf_seg << 4 serial_buf_size equ 4096 ; Should be a power of 2 -- 2.7.4