diff options
Diffstat (limited to 'vbe.c')
-rw-r--r-- | vbe.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |