~adam-hraska+lp/helenos/cht-bench

« back to all changes in this revision

Viewing changes to kernel/arch/ia32/src/boot/multiboot.S

  • Committer: Adam Hraska
  • Date: 2012-08-08 17:19:28 UTC
  • mfrom: (1574.1.16 rcu-clone)
  • Revision ID: adam.hraska+hos@gmail.com-20120808171928-7gf0fh7pcxxcoaoo
Merged in mainline changes from rcu-clone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        .long multiboot_image_start
73
73
 
74
74
multiboot_image_start:
 
75
        cli
75
76
        cld
76
77
        
77
78
        /* Initialize stack pointer */
78
79
        movl $START_STACK, %esp
79
80
        
80
 
        /* Initialize Global Descriptor Table register */
 
81
        /*
 
82
         * Initialize Global Descriptor Table and
 
83
         * Interrupt Descriptor Table registers
 
84
         */
81
85
        lgdtl bootstrap_gdtr
 
86
        lidtl bootstrap_idtr
82
87
        
83
88
        /* Kernel data + stack */
84
89
        movw $GDT_SELECTOR(KDATA_DES), %cx
701
706
page_directory:
702
707
        .space 4096, 0
703
708
 
 
709
.global bootstrap_idtr
 
710
bootstrap_idtr:
 
711
        .word 0
 
712
        .long 0
 
713
 
704
714
.global bootstrap_gdtr
705
715
bootstrap_gdtr:
706
716
        .word GDT_SELECTOR(GDT_ITEMS)