projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
983d619
)
Make sure global variables are zerod before exiting bios post.
author
Kevin O'Connor
<kevin@koconnor.net>
Sun, 9 Mar 2008 17:32:03 +0000
(13:32 -0400)
committer
Kevin O'Connor
<kevin@koconnor.net>
Sun, 9 Mar 2008 17:32:03 +0000
(13:32 -0400)
src/post.c
patch
|
blob
|
history
diff --git
a/src/post.c
b/src/post.c
index 851dbaeeaaf4859d8f1879a082f2a736e9ccc740..216ed068e1e24daee5c397e94711f25e7033fffe 100644
(file)
--- a/
src/post.c
+++ b/
src/post.c
@@
-536,6
+536,10
@@
post()
// XXX - original bios calls ata_detect before rom scan.
rom_scan(0xc8000, 0xe0000);
+ // reset the memory (some boot loaders such as syslinux suppose
+ // that the memory is set to zero)
+ memset((void*)0x40000, 0, 0x40000); // XXX - shouldn't use globals
+
callrom(SEG_BIOS, OFFSET_begin_boot);
}