Changeset 76cec1e in mainline for arch/ia32/boot
- Timestamp:
- 2005-07-15T21:57:30Z (21 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b4a4c5e3
- Parents:
- e41c47e
- Location:
- arch/ia32/boot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/boot/boot.S
re41c47e r76cec1e 51 51 xorw %ax,%ax # reset, %al will be used below 52 52 movw %ax,%dx # fd0, %dh and %dl will be used below 53 movw %dx,%ds53 movw %dx,%ds 54 54 55 55 movw %dx,%ss # initialize stack … … 59 59 jc stop_trying 60 60 61 movw %dx,%ds61 movw %dx,%ds 62 62 movw %dx,%ss 63 63 movw $0x7c00,%sp … … 93 93 movw logical_sector,%ax 94 94 divb sectors 95 95 96 96 movb %ah,%cl 97 incb %cl # sector98 97 incb %cl # sector 98 99 99 movb %al,%ch 100 100 shrb $1,%ch # track 101 101 102 102 movb %al,%dh 103 103 andb $1,%dh # head … … 127 127 movw %sp,%bp 128 128 pusha 129 129 130 130 movb $0xe,%ah 131 131 movb $7,%bl 132 132 int $0x10 133 133 134 134 popa 135 135 pop %bp -
arch/ia32/boot/boot.ld
re41c47e r76cec1e 1 1 OUTPUT_FORMAT(binary) 2 2 SECTIONS { 3 .text 0x7c00 : AT (0x0) { *(.text) }3 .text 0x7c00 : AT (0x0) { *(.text) } 4 4 }
Note:
See TracChangeset
for help on using the changeset viewer.
