WIP: Bring SMP support #11

已关闭
harraiken 请求将 8 次代码提交从 harraiken/exectos:master 合并至 master
共有 5 个文件被更改,包括 54 次插入27 次删除
仅显示提交 5cff5b4c0c 的更改 - 显示所有提交

查看文件

@@ -22,6 +22,7 @@ list(APPEND LIBXTOS_SOURCE
# Specify list of kernel source code files # Specify list of kernel source code files
list(APPEND XTOSKRNL_SOURCE list(APPEND XTOSKRNL_SOURCE
${XTOSKRNL_SOURCE_DIR}/ar/${ARCH}/archsmp.S
${XTOSKRNL_SOURCE_DIR}/ar/${ARCH}/archsup.S ${XTOSKRNL_SOURCE_DIR}/ar/${ARCH}/archsup.S
${XTOSKRNL_SOURCE_DIR}/ar/${ARCH}/cpufunc.c ${XTOSKRNL_SOURCE_DIR}/ar/${ARCH}/cpufunc.c
${XTOSKRNL_SOURCE_DIR}/ar/${ARCH}/globals.c ${XTOSKRNL_SOURCE_DIR}/ar/${ARCH}/globals.c

28
xtoskrnl/ar/amd64/archsmp.S 普通文件
查看文件

@@ -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 .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. * This macro creates a trap handler for the specified vector.
* *

25
xtoskrnl/ar/i686/archsmp.S 普通文件
查看文件

@@ -0,0 +1,25 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtoskrnl/ar/i686/archsmp.S
* DESCRIPTION: AP bootstrap code for i686 architecture
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
*/
#include <i686/asmsup.h>
.altmacro
.text
.global ArStartApplicationProcessor
ArStartApplicationProcessor:
/* 16-bit code (real mode) */
.code16
cli
cld
hlt
/* 32-bit code (protected mode) */
.code32

查看文件

@@ -12,18 +12,6 @@
.text .text
.global _ArStartApplicationProcessor
_ArStartApplicationProcessor:
/* 16-bit code (real mode) */
.code16
cli
cld
hlt
/* 32-bit code (protected mode) */
.code32
/** /**
* This macro creates a trap handler for the specified vector. * This macro creates a trap handler for the specified vector.
* *