git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/armv7 - Fixing bugs, Proc_Clone works now
[tpg/acess2.git]
/
Kernel
/
arch
/
x86_64
/
main.c
diff --git
a/Kernel/arch/x86_64/main.c
b/Kernel/arch/x86_64/main.c
index
af231ee
..
c154870
100644
(file)
--- a/
Kernel/arch/x86_64/main.c
+++ b/
Kernel/arch/x86_64/main.c
@@
-25,11
+25,14
@@
char *gsBootCmdLine = NULL;
void kmain(Uint MbMagic, void *MbInfoPtr)
{
tMBoot_Info *mbInfo;
void kmain(Uint MbMagic, void *MbInfoPtr)
{
tMBoot_Info *mbInfo;
+
+ LogF("Acess2 x86_65 v"EXPAND_STR(KERNEL_VERSION)"\n");
+ LogF(" Build %i, Git Hash %s\n", BUILD_NUM, gsGitHash);
Desctab_Init();
Desctab_Init();
-
+
MM_InitVirt();
MM_InitVirt();
- *(Uint16*)(0xB8000) = 0x1F00|'C';
+ *(Uint16*)(
KERNEL_BASE|
0xB8000) = 0x1F00|'C';
switch(MbMagic)
{
switch(MbMagic)
{
@@
-38,8
+41,6
@@
void kmain(Uint MbMagic, void *MbInfoPtr)
// Adjust Multiboot structure address
mbInfo = (void*)( (Uint)MbInfoPtr + KERNEL_BASE );
gsBootCmdLine = (char*)( (Uint)mbInfo->CommandLine + KERNEL_BASE);
// Adjust Multiboot structure address
mbInfo = (void*)( (Uint)MbInfoPtr + KERNEL_BASE );
gsBootCmdLine = (char*)( (Uint)mbInfo->CommandLine + KERNEL_BASE);
- Log("gsBootCmdLine = '%s'", gsBootCmdLine);
-
MM_InitPhys_Multiboot( mbInfo ); // Set up physical memory manager
break;
default:
MM_InitPhys_Multiboot( mbInfo ); // Set up physical memory manager
break;
default:
@@
-50,24
+51,20
@@
void kmain(Uint MbMagic, void *MbInfoPtr)
Log("gsBootCmdLine = '%s'", gsBootCmdLine);
Log("gsBootCmdLine = '%s'", gsBootCmdLine);
- *(Uint16*)(0xB8000) = 0x1F00|'D';
+ *(Uint16*)(
KERNEL_BASE|
0xB8000) = 0x1F00|'D';
Heap_Install();
Heap_Install();
- *(Uint16*)(0xB8000) = 0x1F00|'E';
- Log_Log("Arch", "Starting threading...");
+ *(Uint16*)(KERNEL_BASE|0xB8000) = 0x1F00|'E';
Threads_Init();
Time_Setup();
Threads_Init();
Time_Setup();
- *(Uint16*)(0xB8000) = 0x1F00|'F';
+ *(Uint16*)(
KERNEL_BASE|
0xB8000) = 0x1F00|'F';
- Log_Log("Arch", "Starting VFS...");
// Load Virtual Filesystem
// Load Virtual Filesystem
+ Log_Log("Arch", "Starting VFS...");
VFS_Init();
VFS_Init();
- *(Uint16*)(0xB8000) = 0x1F00|'Z';
- *(Uint16*)(0xB8002) = 0x1F00|'Z';
- *(Uint16*)(0xB8004) = 0x1F00|'Z';
- *(Uint16*)(0xB8006) = 0x1F00|'Z';
+ *(Uint16*)(KERNEL_BASE|0xB8000) = 0x1F00|'Z';
// Pass on to Independent Loader
Log_Log("Arch", "Starting system");
// Pass on to Independent Loader
Log_Log("Arch", "Starting system");
UCC
git Repository :: git.ucc.asn.au