aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-02 03:04:03 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-02 03:04:03 +0000
commite10a9b1f00cd943cde6100234ba315cf05f4c226 (patch)
tree313bdd67bca1d68da18e38cef787ccd1a7445215
parentcb0c36a6375a1ba3dbeb07e7f30a5a565a2f4e05 (diff)
downloadmonitor-edid-e10a9b1f00cd943cde6100234ba315cf05f4c226.tar
monitor-edid-e10a9b1f00cd943cde6100234ba315cf05f4c226.tar.gz
monitor-edid-e10a9b1f00cd943cde6100234ba315cf05f4c226.tar.bz2
monitor-edid-e10a9b1f00cd943cde6100234ba315cf05f4c226.tar.xz
monitor-edid-e10a9b1f00cd943cde6100234ba315cf05f4c226.zip
Add a comment explaining the code fetching VBE strings from video BIOS.
-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;