Deleted Added
full compact
boot.s (64190) boot.s (167657)
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:

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

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#
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:

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

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: head/sys/boot/pc98/boot0.5/boot.s 64190 2000-08-03 13:01:45Z kato $
28# $FreeBSD: head/sys/boot/pc98/boot0.5/boot.s 167657 2007-03-17 05:30:03Z kato $
29#
30
31 .code16
32
33 .text
34 .global boot
35#
36# Read bootstrap program and jump to it.

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

55 movb %al, b_sector
56 incw %si
57 movb parttable(%si), %al # IPLH
58 movb %al, b_head
59 incw %si # IPLC
60 movw parttable(%si), %ax
61 movw %ax, b_cylinder
62
29#
30
31 .code16
32
33 .text
34 .global boot
35#
36# Read bootstrap program and jump to it.

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

55 movb %al, b_sector
56 incw %si
57 movb parttable(%si), %al # IPLH
58 movb %al, b_head
59 incw %si # IPLC
60 movw parttable(%si), %ax
61 movw %ax, b_cylinder
62
63 # Step 2: Calculate egment address of bootstrap routine
63 # Step 2: Calculate the segment address of the bootstrap routine
64 movw $0x1d00, %ax
65 movw b_secsize, %cx
66 shrw %cx
67 shrw %cx
68 subw %cx, %ax
69 subw $0x100, %ax
70 movw %ax, b_bootseg
71

--- 103 unchanged lines hidden ---
64 movw $0x1d00, %ax
65 movw b_secsize, %cx
66 shrw %cx
67 shrw %cx
68 subw %cx, %ax
69 subw $0x100, %ax
70 movw %ax, b_bootseg
71

--- 103 unchanged lines hidden ---