- Add support for attaching alternative DLTs to an interface.
[dragonfly.git] / sys / boot / pc98 / boot0.5 / start.s
1 # Copyright (c) KATO Takenori, 1999, 2000.
2
3 # All rights reserved.  Unpublished rights reserved under the copyright
4 # laws of Japan.
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:
9
10 # 1. Redistributions of source code must retain the above copyright
11 #    notice, this list of conditions and the following disclaimer as
12 #    the first lines of this file unmodified.
13 # 2. Redistributions in binary form must reproduce the above copyright
14 #    notice, this list of conditions and the following disclaimer in the
15 #    documentation and/or other materials provided with the distribution.
16 #
17 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 #
28 # $FreeBSD: src/sys/boot/pc98/boot0.5/start.s,v 1.2 2003/05/02 09:33:12 kato Exp $
29 # $DragonFly: src/sys/boot/pc98/boot0.5/Attic/start.s,v 1.3 2003/11/10 06:08:38 dillon Exp $
30 #
31         .global start
32         .code16
33
34         .text
35 start:
36         jmp     start1
37
38         .org    0x2d4
39 start1:
40         cli
41         movw    %cs, %ax
42         movw    %ax, %ds
43         movw    %ss, iniss
44         movw    %sp, inisp
45         movw    %ax, %ss
46         movw    $0xfffe, %sp
47         sti     
48         xorw    %ax, %ax
49         movw    %ax, %es
50         call    main
51
52         cli
53         movw    %cs:iniss, %ss
54         movw    %cs:inisp, %sp
55         sti
56         int     $0x1e
57         # NOTREACHED
58         lret
59
60         .data
61         .global iniss, inisp
62 iniss:  .word   0
63 inisp:  .word   0