Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xing Lin
qemu
Commits
e1a23744
Commit
e1a23744
authored
Apr 05, 2004
by
bellard
Browse files
port 92 access
git-svn-id:
svn://svn.savannah.nongnu.org/qemu/trunk@708
c046a42c-6fe2-441c-8c8c-71466251a162
parent
57c30724
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw/pc.c
View file @
e1a23744
...
...
@@ -177,6 +177,17 @@ static uint32_t speaker_ioport_read(void *opaque, uint32_t addr)
(
dummy_refresh_clock
<<
4
);
}
static
void
ioport92_write
(
void
*
opaque
,
uint32_t
addr
,
uint32_t
val
)
{
cpu_x86_set_a20
(
cpu_single_env
,
(
val
>>
1
)
&
1
);
/* XXX: bit 0 is fast reset */
}
static
uint32_t
ioport92_read
(
void
*
opaque
,
uint32_t
addr
)
{
return
((
cpu_single_env
->
a20_mask
>>
20
)
&
1
)
<<
1
;
}
/***********************************************************/
/* Bochs BIOS debug ports */
...
...
@@ -355,6 +366,9 @@ void pc_init(int ram_size, int vga_ram_size, int boot_device,
register_ioport_read
(
0x61
,
1
,
1
,
speaker_ioport_read
,
NULL
);
register_ioport_write
(
0x61
,
1
,
1
,
speaker_ioport_write
,
NULL
);
register_ioport_read
(
0x92
,
1
,
1
,
ioport92_read
,
NULL
);
register_ioport_write
(
0x92
,
1
,
1
,
ioport92_write
,
NULL
);
pic_init
();
pit_init
(
0x40
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment