Changeset 19077a5 in mainline for kernel/arch/amd64/src/smp/ap.S


Ignore:
Timestamp:
2008-01-25T16:45:42Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9415601
Parents:
a7df23c
Message:

Grow the initial identity mapping from 64M to 4G.
We should not allocate GDT's from above 4G or the amd64 will occassionally
triple-fault again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/smp/ap.S

    ra7df23c r19077a5  
    11#
    2 # Copyright (c) 2001-2004 Jakub Jermar
     2# Copyright (c) 2008 Jakub Jermar
    33# Copyright (c) 2005-2006 Martin Decky
    44# All rights reserved.
     
    4646
    4747# This piece of code is real-mode and is meant to be alligned at 4K boundary.
    48 # The requirement for such an alignment comes from MP Specification's STARTUP IPI
    49 # requirements.
     48# The requirement for such an alignment comes from MP Specification's STARTUP
     49# IPI requirements.
    5050
    5151.align 4096
     
    6060        movl %cr0, %eax
    6161        orl $1, %eax
    62         movl %eax, %cr0                         # switch to protected mode
     62        movl %eax, %cr0         # switch to protected mode
    6363        jmpl $gdtselector(KTEXT32_DES), $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET
    6464       
     
    8383       
    8484        # Enable long mode
    85         movl $EFER_MSR_NUM, %ecx   # EFER MSR number
    86         rdmsr                   # Read EFER
    87         btsl $AMD_LME_FLAG, %eax            # Set LME=1
    88         wrmsr                   # Write EFER
     85        movl $EFER_MSR_NUM, %ecx        # EFER MSR number
     86        rdmsr                           # Read EFER
     87        btsl $AMD_LME_FLAG, %eax        # Set LME=1
     88        wrmsr                           # Write EFER
    8989       
    9090        # Enable paging to activate long mode (set CR0.PG=1)
     
    108108
    109109.global unmapped_ap_gdtr
    110 
    111110unmapped_ap_gdtr:
    112111        .word 0
Note: See TracChangeset for help on using the changeset viewer.