Deleted Added
full compact
bioscd.c (226746) bioscd.c (226748)
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * Copyright (c) 2001 John H. Baldwin <jhb@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * Copyright (c) 2001 John H. Baldwin <jhb@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/boot/i386/libi386/bioscd.c 226746 2011-10-25 19:45:12Z jhb $");
29__FBSDID("$FreeBSD: head/sys/boot/i386/libi386/bioscd.c 226748 2011-10-25 19:54:06Z jhb $");
30
31/*
32 * BIOS CD device handling for CD's that have been booted off of via no
33 * emulation booting as defined in the El Torito standard.
34 *
35 * Ideas and algorithms from:
36 *
37 * - FreeBSD libi386/biosdisk.c

--- 282 unchanged lines hidden (view full) ---

320 if (retry > 0) {
321 v86.ctl = V86_FLAGS;
322 v86.addr = 0x13;
323 v86.eax = 0;
324 v86.edx = biosdev;
325 v86int();
326 }
327
30
31/*
32 * BIOS CD device handling for CD's that have been booted off of via no
33 * emulation booting as defined in the El Torito standard.
34 *
35 * Ideas and algorithms from:
36 *
37 * - FreeBSD libi386/biosdisk.c

--- 282 unchanged lines hidden (view full) ---

320 if (retry > 0) {
321 v86.ctl = V86_FLAGS;
322 v86.addr = 0x13;
323 v86.eax = 0;
324 v86.edx = biosdev;
325 v86int();
326 }
327
328 packet.len = 0x10;
328 packet.len = sizeof(struct edd_packet);
329 packet.count = x;
329 packet.count = x;
330 packet.offset = VTOPOFF(xp);
330 packet.off = VTOPOFF(xp);
331 packet.seg = VTOPSEG(xp);
332 packet.lba = dblk;
333 v86.ctl = V86_FLAGS;
334 v86.addr = 0x13;
335 v86.eax = 0x4200;
336 v86.edx = biosdev;
337 v86.ds = VTOPSEG(&packet);
338 v86.esi = VTOPOFF(&packet);

--- 56 unchanged lines hidden ---
331 packet.seg = VTOPSEG(xp);
332 packet.lba = dblk;
333 v86.ctl = V86_FLAGS;
334 v86.addr = 0x13;
335 v86.eax = 0x4200;
336 v86.edx = biosdev;
337 v86.ds = VTOPSEG(&packet);
338 v86.esi = VTOPOFF(&packet);

--- 56 unchanged lines hidden ---