summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2005-03-01 23:17:42 +0000
committeriedowse <iedowse@FreeBSD.org>2005-03-01 23:17:42 +0000
commitadb75da00374ccc4e6d8e64045a443b9206bccb2 (patch)
tree371f27b5f6293afc70082931c3e01be8f42037fe /sys/i386/isa
parentae565b7e33e330442c80d720605978f191d4413f (diff)
downloadFreeBSD-src-adb75da00374ccc4e6d8e64045a443b9206bccb2.zip
FreeBSD-src-adb75da00374ccc4e6d8e64045a443b9206bccb2.tar.gz
Reduce the maximum supported save state size to 4k, as the 8k limit
was not implemented correctly and needs further work.
Diffstat (limited to 'sys/i386/isa')
-rw-r--r--sys/i386/isa/vesa.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/i386/isa/vesa.c b/sys/i386/isa/vesa.c
index b1e8196..ebb5f93 100644
--- a/sys/i386/isa/vesa.c
+++ b/sys/i386/isa/vesa.c
@@ -187,7 +187,7 @@ static int vesa_bios_load_palette2(int start, int colors, u_char *r, u_char *g,
#define STATE_REG (1<<3)
#define STATE_MOST (STATE_HW | STATE_DATA | STATE_REG)
#define STATE_ALL (STATE_HW | STATE_DATA | STATE_DAC | STATE_REG)
-#define STATE_MAXSIZE (2 * PAGE_SIZE)
+#define STATE_MAXSIZE PAGE_SIZE
static int vesa_bios_state_buf_size(void);
static int vesa_bios_save_restore(int code, void *p, size_t size);
static int vesa_bios_get_line_length(void);
@@ -805,8 +805,6 @@ vesa_bios_init(void)
if (!has_vesa_bios)
return (1);
- /* Get a second page to support STATE_MAXSIZE. */
- (void)vm86_addpage(&vesa_vmcontext, 2, 0);
return (0);
}
OpenPOWER on IntegriCloud