summaryrefslogtreecommitdiff
path: root/console-client
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2007-05-08 13:39:51 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2007-05-08 13:39:51 +0000
commit4c79ee2d9f6439bdf7f6f1ad4c0723e5f6cfc053 (patch)
treeeb286381ca970ca6d3c26eee60af937ff55ca2f6 /console-client
parentf63f4d4ffc5df519609f1a246291649cd2b76caa (diff)
2007-05-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
* vga-support.c (vga_fini): Fix call to ioperm().
Diffstat (limited to 'console-client')
-rw-r--r--console-client/ChangeLog4
-rw-r--r--console-client/vga-support.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/console-client/ChangeLog b/console-client/ChangeLog
index 5773f5f3..3e986a5a 100644
--- a/console-client/ChangeLog
+++ b/console-client/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * vga-support.c (vga_fini): Fix call to ioperm().
+
2005-07-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
* current-vcs.c (repeater_node): Set default.
diff --git a/console-client/vga-support.c b/console-client/vga-support.c
index c7e9e914..dd4d099d 100644
--- a/console-client/vga-support.c
+++ b/console-client/vga-support.c
@@ -229,7 +229,7 @@ vga_fini (void)
outb (VGA_CRT_CURSOR_LOW, VGA_CRT_ADDR_REG);
outb (vga_state->crt_cursor_low, VGA_CRT_DATA_REG);
- ioperm (VGA_MIN_REG, VGA_MAX_REG, 0);
+ ioperm (VGA_MIN_REG, VGA_MAX_REG - VGA_MIN_REG + 1, 0);
munmap (vga_videomem, VGA_VIDEO_MEM_LENGTH);
}