mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-03-15 04:25:06 +00:00
typo fix
This commit is contained in:
parent
006bd856db
commit
ff1f90a666
7 changed files with 4 additions and 5 deletions
Binary file not shown.
Binary file not shown.
|
@ -4,7 +4,7 @@ It has 3 channels:
|
||||||
|
|
||||||
$LK,"Channel 0",A="MN:PIT0"$ can generate an interrupt, IRQ 0, at a defined frequency. We set it up in $LK,"TimerInit",A="MN:TimerInit"$(), and use it in $LK,"SysTimerRead",A="MN:SysTimerRead"$().
|
$LK,"Channel 0",A="MN:PIT0"$ can generate an interrupt, IRQ 0, at a defined frequency. We set it up in $LK,"TimerInit",A="MN:TimerInit"$(), and use it in $LK,"SysTimerRead",A="MN:SysTimerRead"$().
|
||||||
|
|
||||||
Channel 1 ised to be used to refresh the DRAM, but now it is obsolete as the hardware does this itself. Channel 1 is useless and might not even be implemented anymore on modern machines.
|
Channel 1 was used historically to refresh the DRAM, but now it is obsolete as the hardware does this itself. Channel 1 is useless and might not even be implemented anymore on modern machines.
|
||||||
|
|
||||||
$LK,"Channel 2",A="MN:PIT2"$'s output is connected to the PC speaker.
|
$LK,"Channel 2",A="MN:PIT2"$'s output is connected to the PC speaker.
|
||||||
|
|
||||||
|
|
BIN
src/Kernel.BIN.C
BIN
src/Kernel.BIN.C
Binary file not shown.
|
@ -224,7 +224,7 @@ CBinFile *Load(U8 *filename,I64 ld_flags=0,CBinFile *bfh_addr=INVALID_PTR)
|
||||||
module_base=bfh_addr(U8 *)+sizeof(CBinFile);
|
module_base=bfh_addr(U8 *)+sizeof(CBinFile);
|
||||||
|
|
||||||
absname=FileNameAbs(fbuf);
|
absname=FileNameAbs(fbuf);
|
||||||
Free(fbuf);
|
Free(fbuf);
|
||||||
fbuf=StrNew(absname);
|
fbuf=StrNew(absname);
|
||||||
FileExtRemove(fbuf);
|
FileExtRemove(fbuf);
|
||||||
if (fbuf[1]==':' && StrLen(fbuf)>2)
|
if (fbuf[1]==':' && StrLen(fbuf)>2)
|
||||||
|
@ -239,8 +239,7 @@ CBinFile *Load(U8 *filename,I64 ld_flags=0,CBinFile *bfh_addr=INVALID_PTR)
|
||||||
|
|
||||||
U0 LoadKernel()
|
U0 LoadKernel()
|
||||||
{
|
{
|
||||||
HashGenericAdd(KERNEL_MODULE_NAME,HTT_MODULE|HTF_PUBLIC,
|
HashGenericAdd(KERNEL_MODULE_NAME,HTT_MODULE|HTF_PUBLIC,mem_boot_base-sizeof(CBinFile));
|
||||||
mem_boot_base-sizeof(CBinFile));
|
|
||||||
|
|
||||||
//Abs patches done here $LK,"CPatchTableAbsAddr",A="FF:::/Kernel/KStart32.CC,CPatchTableAbsAddr"$.
|
//Abs patches done here $LK,"CPatchTableAbsAddr",A="FF:::/Kernel/KStart32.CC,CPatchTableAbsAddr"$.
|
||||||
LoadPass1(sys_boot_patch_table_base,mem_boot_base,LDF_NO_ABSS|LDF_SILENT);
|
LoadPass1(sys_boot_patch_table_base,mem_boot_base,LDF_NO_ABSS|LDF_SILENT);
|
||||||
|
|
|
@ -2980,7 +2980,7 @@ d |