Changeset f944715 in mainline


Ignore:
Timestamp:
2005-09-01T09:02:53Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c842f04
Parents:
dbe9ff0
Message:

IA-32 GRUB support (alpha)

Location:
arch/ia32
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/boot/boot.S

    rdbe9ff0 rf944715  
    2626# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727#
     28
     29#include <arch/boot/boot.h>
    2830
    2931.section K_TEXT_START
     
    5557        movl %eax,%cr0                  # switch to protected mode
    5658        jmpl $8,$meeting_point
     59
     60.code32
     61.align 4
     62multiboot_header:
     63        .long MULTIBOOT_HEADER_MAGIC
     64        .long MULTIBOOT_HEADER_FLAGS
     65        .long -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)        # checksum
     66        .long multiboot_header
     67        .long unmapped_ktext_start
     68        .long 0
     69        .long 0
     70        .long multiboot_image_start
     71       
     72multiboot_image_start:
     73        movl $0x7c00, %esp              # initialize stack pointer
     74       
     75        lgdt gdtr
     76        lidt idtr
     77
    5778meeting_point:
    58 .code32
    59 
    6079        movw $16,%ax
    6180        movw %ax,%es
Note: See TracChangeset for help on using the changeset viewer.