Deleted Added
full compact
bioscd.c (163897) bioscd.c (172921)
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 163897 2006-11-02 01:23:18Z marcel $");
29__FBSDID("$FreeBSD: head/sys/boot/i386/libi386/bioscd.c 172921 2007-10-24 04:03:25Z 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

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

345 * number don't match to unit numbers very well. We may just need
346 * to engage in a hack where we pass -C to the boot args if we are
347 * the boot device.
348 */
349 major = ACDMAJOR;
350 unit = 0; /* XXX */
351
352 /* XXX: Assume partition 'a'. */
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

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

345 * number don't match to unit numbers very well. We may just need
346 * to engage in a hack where we pass -C to the boot args if we are
347 * the boot device.
348 */
349 major = ACDMAJOR;
350 unit = 0; /* XXX */
351
352 /* XXX: Assume partition 'a'. */
353 rootdev = MAKEBOOTDEV(major, 0, 0, unit, 0);
353 rootdev = MAKEBOOTDEV(major, 0, unit, 0);
354 DEBUG("dev is 0x%x\n", rootdev);
355 return(rootdev);
356}
354 DEBUG("dev is 0x%x\n", rootdev);
355 return(rootdev);
356}