Changeset 66def8d in mainline for arch/ia32/src/smp/ap.S


Ignore:
Timestamp:
2006-01-08T17:51:36Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8725fb4
Parents:
078a0a1
Message:

simplify and cleanup ia32 boot process, remove obsolete stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/smp/ap.S

    r078a0a1 r66def8d  
    11#
    22# Copyright (C) 2001-2004 Jakub Jermar
     3# Copyright (C) 2005-2006 Martin Decky
    34# All rights reserved.
    45#
     
    3132#
    3233
    33 .section K_TEXT_START_2, "ax"
     34#include <arch/boot/boot.h>
     35#include <arch/boot/memmap.h>
     36#include <arch/mm/page.h>
     37#include <arch/pm.h>
     38
     39.section K_TEXT_START, "ax"
    3440
    3541#ifdef CONFIG_SMP
    3642
    37 .global ap_boot
     43.global unmapped_ap_boot
    3844
    3945KTEXT=8
     
    4551
    4652.align 4096
    47 ap_boot:
     53unmapped_ap_boot:
    4854.code16
    4955        cli
     
    5157        movw %ax, %ds
    5258
    53         lgdt real_bootstrap_gdtr_boot   # initialize Global Descriptor Table register
     59        lgdt ap_gdtr            # initialize Global Descriptor Table register
    5460       
    5561        movl %cr0, %eax
    5662        orl $1, %eax
    5763        movl %eax, %cr0                         # switch to protected mode
    58         jmpl $KTEXT, $jump_to_kernel
     64        jmpl $KTEXT, $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET
    5965       
    6066jump_to_kernel:
     
    6470        movw %ax, %es
    6571        movw %ax, %ss
    66         movl $(ctx-0x80000000), %eax    # KA2PA((__address) &ctx)
     72        movl $KA2PA(ctx), %eax                  # KA2PA((__address) &ctx)
    6773        movl (%eax), %esp
    6874        subl $0x80000000, %esp                  # KA2PA(ctx.sp)
     
    7581
    7682#endif /* CONFIG_SMP */
     83
     84
     85.section K_DATA_START, "ax"
     86
     87#ifdef CONFIG_SMP
     88
     89.global unmapped_ap_gdtr
     90
     91unmapped_ap_gdtr:
     92        .word 0
     93        .long 0
     94
     95#endif /* CONFIG_SMP */
Note: See TracChangeset for help on using the changeset viewer.