diff options
author | Anssi Hannula <anssi@mandriva.org> | 2010-01-02 03:04:03 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mandriva.org> | 2010-01-02 03:04:03 +0000 |
commit | e10a9b1f00cd943cde6100234ba315cf05f4c226 (patch) | |
tree | 313bdd67bca1d68da18e38cef787ccd1a7445215 | |
parent | cb0c36a6375a1ba3dbeb07e7f30a5a565a2f4e05 (diff) | |
download | monitor-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.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; |