Changeset 66def8d in mainline for arch/ia32/src/smp/ap.S
- Timestamp:
- 2006-01-08T17:51:36Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8725fb4
- Parents:
- 078a0a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/smp/ap.S
r078a0a1 r66def8d 1 1 # 2 2 # Copyright (C) 2001-2004 Jakub Jermar 3 # Copyright (C) 2005-2006 Martin Decky 3 4 # All rights reserved. 4 5 # … … 31 32 # 32 33 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" 34 40 35 41 #ifdef CONFIG_SMP 36 42 37 .global ap_boot43 .global unmapped_ap_boot 38 44 39 45 KTEXT=8 … … 45 51 46 52 .align 4096 47 ap_boot:53 unmapped_ap_boot: 48 54 .code16 49 55 cli … … 51 57 movw %ax, %ds 52 58 53 lgdt real_bootstrap_gdtr_boot# initialize Global Descriptor Table register59 lgdt ap_gdtr # initialize Global Descriptor Table register 54 60 55 61 movl %cr0, %eax 56 62 orl $1, %eax 57 63 movl %eax, %cr0 # switch to protected mode 58 jmpl $KTEXT, $jump_to_kernel 64 jmpl $KTEXT, $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET 59 65 60 66 jump_to_kernel: … … 64 70 movw %ax, %es 65 71 movw %ax, %ss 66 movl $ (ctx-0x80000000), %eax# KA2PA((__address) &ctx)72 movl $KA2PA(ctx), %eax # KA2PA((__address) &ctx) 67 73 movl (%eax), %esp 68 74 subl $0x80000000, %esp # KA2PA(ctx.sp) … … 75 81 76 82 #endif /* CONFIG_SMP */ 83 84 85 .section K_DATA_START, "ax" 86 87 #ifdef CONFIG_SMP 88 89 .global unmapped_ap_gdtr 90 91 unmapped_ap_gdtr: 92 .word 0 93 .long 0 94 95 #endif /* CONFIG_SMP */
Note:
See TracChangeset
for help on using the changeset viewer.