Changeset 89344d85 in mainline for arch/amd64/src/boot/boot.S


Ignore:
Timestamp:
2005-09-03T00:19:23Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36b209a
Parents:
e4a6dda
Message:

Changes, that were needed to make it work on Bochs.

  • We CAN use the NX bit in paging tables, but we have

to initialize the NXE bit in EFER register first.

File:
1 edited

Legend:

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

    re4a6dda r89344d85  
    3232#include <arch/mm/ptl.h>
    3333#include <arch/pm.h>
     34#include <arch/cpu.h>
    3435
    3536#define START_STACK     0x7c00 
     
    102103               
    103104        # Enable long mode
    104         movl $0xc0000080, %ecx   # EFER MSR number
     105        movl $EFER_MSR_NUM, %ecx   # EFER MSR number
    105106        rdmsr                   # Read EFER
    106         btsl $8, %eax            # Set LME=1
     107        btsl $AMD_LME_FLAG, %eax            # Set LME=1
    107108        wrmsr                   # Write EFER
    108109       
Note: See TracChangeset for help on using the changeset viewer.