mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Don't try to call into BIOS32 handlers outside the normal ROM
address range. They may have been trashed earlier in the boot process, or the directory header may simply be bogus. PR: 5140 Submitted by: Joel Faedi <Joel.Faedi@esial.u-nancy.fr> Brought-to-attention-by: Derek Inksetter <derek@saidev.com>, bde
This commit is contained in:
parent
d92b2035e3
commit
d20358b3bd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32164
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: bios.c,v 1.7 1997/10/21 07:40:22 msmith Exp $
|
||||
* $Id: bios.c,v 1.8 1997/11/07 08:52:26 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -83,7 +83,7 @@ bios32_init(void *junk)
|
||||
ck += cv[i];
|
||||
}
|
||||
/* If checksum is OK, enable use of the entrypoint */
|
||||
if (ck == 0) {
|
||||
if ((ck == 0) && (sdh->entry < (BIOS_START + BIOS_SIZE))) {
|
||||
bios32_SDCI = (caddr_t)BIOS_PADDRTOVADDR(sdh->entry);
|
||||
if (bootverbose) {
|
||||
printf("Found BIOS32 Service Directory header at %p\n", sdh);
|
||||
|
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: bios.c,v 1.7 1997/10/21 07:40:22 msmith Exp $
|
||||
* $Id: bios.c,v 1.8 1997/11/07 08:52:26 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -83,7 +83,7 @@ bios32_init(void *junk)
|
||||
ck += cv[i];
|
||||
}
|
||||
/* If checksum is OK, enable use of the entrypoint */
|
||||
if (ck == 0) {
|
||||
if ((ck == 0) && (sdh->entry < (BIOS_START + BIOS_SIZE))) {
|
||||
bios32_SDCI = (caddr_t)BIOS_PADDRTOVADDR(sdh->entry);
|
||||
if (bootverbose) {
|
||||
printf("Found BIOS32 Service Directory header at %p\n", sdh);
|
||||
|
Loading…
Reference in New Issue
Block a user