1
0
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:
Mike Smith 1998-01-01 13:26:55 +00:00
parent d92b2035e3
commit d20358b3bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32164
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);