This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / sys / i386 / boot / boot2.s
CommitLineData
15637ed4
RG
1/*
2 * Ported to boot 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
3 *
4 * Mach Operating System
5 * Copyright (c) 1992, 1991 Carnegie Mellon University
6 * All Rights Reserved.
7 *
8 * Permission to use, copy, modify and distribute this software and its
9 * documentation is hereby granted, provided that both the copyright
10 * notice and this permission notice appear in all copies of the
11 * software, derivative works or modified versions, and any portions
12 * thereof, and that both notices appear in supporting documentation.
13 *
14 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
16 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 *
18 * Carnegie Mellon requests users of this software to return to
19 *
20 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
21 * School of Computer Science
22 * Carnegie Mellon University
23 * Pittsburgh PA 15213-3890
24 *
25 * any improvements or extensions that they make and grant Carnegie Mellon
26 * the rights to redistribute these changes.
27 */
28
29/*
30 * HISTORY
31 * $Log: boot2.s,v $
32 * Revision 2.2 92/04/04 11:35:26 rpd
33 * From 2.5
34 * [92/03/30 rvb]
35 *
36 * Revision 2.2 91/04/02 14:39:21 mbj
37 * Put into rcs tree
38 * [90/02/09 rvb]
39 *
40 */
41
42#include "asm.h"
43#define LOADMSG 1
44/*
45 * boot2() -- second stage boot
46 */
47
48.globl _ouraddr
49
50ENTRY(boot2)
51 movl %cs, %ax
52 movl %ax, %ds
53 movl %ax, %es
54 data32
55 sall $4, %eax
56 data32
57 movl %eax, _ouraddr
58 /* save the drive type and ID */
59 data32
60 pushl %edx
61 /* change to protected mode */
62 data32
63 call _real_to_prot
64
65 call _boot
66 ret
67
68 .data
69 .align 2
70_ouraddr:
71 .long 0
72
73