ap bootstrap code in dedicated file
This commit is contained in:
28
xtoskrnl/ar/amd64/archsmp.S
Normal file
28
xtoskrnl/ar/amd64/archsmp.S
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/ar/amd64/archsmp.S
|
||||
* DESCRIPTION: AP bootstrap code for AMD64 architecture
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#include <amd64/asmsup.h>
|
||||
|
||||
.altmacro
|
||||
.text
|
||||
|
||||
|
||||
.global ArStartApplicationProcessor
|
||||
ArStartApplicationProcessor:
|
||||
/* 16-bit code (real mode) */
|
||||
.code16
|
||||
|
||||
cli
|
||||
cld
|
||||
hlt
|
||||
|
||||
/* 32-bit code (protected mode) */
|
||||
.code32
|
||||
|
||||
/* 64-bit code (long mode) */
|
||||
.code64
|
@@ -12,21 +12,6 @@
|
||||
.text
|
||||
|
||||
|
||||
.global ArStartApplicationProcessor
|
||||
ArStartApplicationProcessor:
|
||||
/* 16-bit code (real mode) */
|
||||
.code16
|
||||
|
||||
cli
|
||||
cld
|
||||
hlt
|
||||
|
||||
/* 32-bit code (protected mode) */
|
||||
.code32
|
||||
|
||||
/* 64-bit code (long mode) */
|
||||
.code64
|
||||
|
||||
/**
|
||||
* This macro creates a trap handler for the specified vector.
|
||||
*
|
||||
|
Reference in New Issue
Block a user