aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vbe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vbe.c b/vbe.c
index 5029020..b9461d7 100644
--- a/vbe.c
+++ b/vbe.c
@@ -68,6 +68,10 @@ static unsigned get_data(char *buf, unsigned buf_size, char *bufferaddr, unsigne
if(len >= buf_size) len = buf_size - 1;
memcpy(buf, real_addr, len);
}
+ /* the pointer may also point to the BIOS instead:
+ 0x0c0000: video BIOS
+ 0x100000: end of ROM area
+ */
else if(addr >= 0x0c0000 && addr < 0x100000) {
len = 0x100000 - addr;
if(len >= buf_size) len = buf_size - 1;