Cleanup machine.c
This commit is contained in:
parent
ddab13b829
commit
ce4bc130af
@ -44,11 +44,10 @@ static char df_stack[4096];
|
|||||||
/**
|
/**
|
||||||
* Machine_GDTInit --
|
* Machine_GDTInit --
|
||||||
*
|
*
|
||||||
* Configures the Global Descriptor Table (GDT) that lists all segments
|
* Configures the Global Descriptor Table (GDT) that lists all segments and
|
||||||
* and privilege levels in x86. 64-bit mode uses flat 64-bit segments and
|
* privilege levels in x86. 64-bit mode uses flat 64-bit segments and doesn't
|
||||||
* doesn't support offsets and limits except for the special FS/GS segment
|
* support offsets and limits except for the special FS/GS segment registers.
|
||||||
* registers. We create four segments for the kernel code/data and user
|
* We create four segments for the kernel code/data and user code/data.
|
||||||
* code/data.
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
Machine_GDTInit()
|
Machine_GDTInit()
|
||||||
@ -88,8 +87,8 @@ Machine_GDTInit()
|
|||||||
/**
|
/**
|
||||||
* Machine_TSSInit --
|
* Machine_TSSInit --
|
||||||
*
|
*
|
||||||
* Configures the Task State Segment (TSS) that specifies the kernel stack
|
* Configures the Task State Segment (TSS) that specifies the kernel stack
|
||||||
* pointer during an interrupt.
|
* pointer during an interrupt.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
Machine_TSSInit()
|
Machine_TSSInit()
|
||||||
@ -122,9 +121,8 @@ Machine_TSSInit()
|
|||||||
/**
|
/**
|
||||||
* Machine_SyscallInit --
|
* Machine_SyscallInit --
|
||||||
*
|
*
|
||||||
* Configure the model specific registers (MSRs) that specify how to
|
* Configure the model specific registers (MSRs) that specify how to transfer
|
||||||
* transfer control to the operating system when the system call
|
* control to the operating system when the system call instruction is invoked.
|
||||||
* instruction is invoked.
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
Machine_SyscallInit()
|
Machine_SyscallInit()
|
||||||
@ -142,7 +140,7 @@ Machine_SyscallInit()
|
|||||||
/**
|
/**
|
||||||
* Machine_EarlyInit --
|
* Machine_EarlyInit --
|
||||||
*
|
*
|
||||||
* Initializes early kernel state.
|
* Initializes early kernel state.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
Machine_EarlyInit()
|
Machine_EarlyInit()
|
||||||
@ -164,9 +162,9 @@ Machine_IdleThread(void *test)
|
|||||||
/**
|
/**
|
||||||
* Machine_Init --
|
* Machine_Init --
|
||||||
*
|
*
|
||||||
* At this point the assembly startup code has setup temporary processor
|
* At this point the assembly startup code has setup temporary processor data
|
||||||
* data structures sufficient to execute C code and make it through this
|
* structures sufficient to execute C code and make it through this
|
||||||
* initialization routine.
|
* initialization routine.
|
||||||
*/
|
*/
|
||||||
void Machine_Init()
|
void Machine_Init()
|
||||||
{
|
{
|
||||||
@ -248,7 +246,7 @@ void Machine_Init()
|
|||||||
/**
|
/**
|
||||||
* Machine_InitAP --
|
* Machine_InitAP --
|
||||||
*
|
*
|
||||||
* Shorter initialization routine for co-processors.
|
* Shorter initialization routine for co-processors.
|
||||||
*/
|
*/
|
||||||
void Machine_InitAP()
|
void Machine_InitAP()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user