Annotation of Net2/arch/i386/boot/boot2.s, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Ported to boot 386BSD by Julian Elischer ([email protected]) 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  [email protected]
                     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 1.1  1993/03/21 18:08:33  cgd
                     33:  * after 0.2.2 "stable" patches applied
                     34:  *
                     35:  * Revision 2.2  92/04/04  11:35:26  rpd
                     36:  *     From 2.5
                     37:  *     [92/03/30            rvb]
                     38:  * 
                     39:  * Revision 2.2  91/04/02  14:39:21  mbj
                     40:  *     Put into rcs tree
                     41:  *     [90/02/09            rvb]
                     42:  * 
                     43:  */
                     44: 
                     45: #include       "asm.h"
                     46: #define LOADMSG 1
                     47: /*
                     48:  * boot2() -- second stage boot
                     49:  */
                     50: 
                     51: .globl _ouraddr
                     52: 
                     53: ENTRY(boot2)
                     54:        movl    %cs, %ax
                     55:        movl    %ax, %ds
                     56:        movl    %ax, %es
                     57:        data32
                     58:        sall    $4, %eax
                     59:        data32
                     60:        movl    %eax, _ouraddr
                     61:        /* save the drive type and ID */ 
                     62:        data32
                     63:        pushl   %edx
                     64:        /* change to protected mode */
                     65:        data32
                     66:        call    _real_to_prot
                     67: 
                     68:        call    _boot
                     69:        ret
                     70: 
                     71:        .data
                     72:         .align 2
                     73: _ouraddr:
                     74:         .long 0
                     75: 
                     76: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.