exectos/xtldr/modules/xtos/amd64/cpu.c
belliash 79a5027bca
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Cleanup AMD64 part of CPU initialization, as it has been moved to the kernel
2023-01-29 01:01:36 +01:00

61 lines
1.5 KiB
C

/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtldr/modules/xtos/amd64/cpu.c
* DESCRIPTION: XTOS AMD64 processor context
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#include <xtos.h>
/**
* Loads previously prepared CPU context and performs architecture-specific tasks needed to boot XTOS.
*
* @param Gdt
* Supplies a pointer to memory area containing GDT to load.
*
* @param Idt
* Supplies a pointer to memory area containing IDT to load.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTCDECL
VOID
XtpLoadProcessorContext(IN PKGDTENTRY Gdt,
IN PKIDTENTRY Idt)
{
}
/**
* Sets architecture specific processor context.
*
* @param MemoryMappings
* Supplies a pointer to linked list containing all memory mappings.
*
* @param VirtualAddress
* Supplies a pointer to the next valid, free and available virtual address.
*
* @param Gdt
* Supplies a pointer to memory area containing GDT to fill in.
*
* @param Idt
* Supplies a pointer to memory area containing IDT to fill in.
*
* @return This routine returns a status code.
*
* @since XT 1.0
*/
XTCDECL
EFI_STATUS
XtpSetProcessorContext(IN PLIST_ENTRY MemoryMappings,
IN PVOID *VirtualAddress,
OUT PKGDTENTRY *Gdt,
OUT PKIDTENTRY *Idt)
{
/* Return success */
return STATUS_EFI_SUCCESS;
}