projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace common segment/offset pairs with struct segoff_s.
[seabios.git]
/
src
/
post.c
diff --git
a/src/post.c
b/src/post.c
index 9bb51326c814009ae050b83fcac1e0f566d5eee4..7edd1f611fff4e666362f97bd2237c95fbf9358d 100644
(file)
--- a/
src/post.c
+++ b/
src/post.c
@@
-23,7
+23,7
@@
void
__set_irq(int vector, void *loc)
{
void
__set_irq(int vector, void *loc)
{
- SET_IVT(vector, SEG
_BIOS, (u32)loc - BUILD_BIOS_ADDR
);
+ SET_IVT(vector, SEG
OFF(SEG_BIOS, (u32)loc - BUILD_BIOS_ADDR)
);
}
#define set_irq(vector, func) do { \
}
#define set_irq(vector, func) do { \
@@
-64,7
+64,7
@@
init_ivt()
// set vector 0x79 to zero
// this is used by 'gardian angel' protection system
// set vector 0x79 to zero
// this is used by 'gardian angel' protection system
- SET_IVT(0x79,
0, 0
);
+ SET_IVT(0x79,
SEGOFF(0, 0)
);
__set_irq(0x1E, &diskette_param_table2);
}
__set_irq(0x1E, &diskette_param_table2);
}
@@
-189,6
+189,7
@@
post()
drive_setup();
floppy_setup();
ata_setup();
drive_setup();
floppy_setup();
ata_setup();
+ ramdisk_setup();
optionrom_setup();
optionrom_setup();