I am not OS developer, I can't help you with your problem but I was curious looked at kernel.pas.
You don't call any function in kernel program, look at line 200-201, maybe this is the error.
https://github.com/TYDQSoft/UEFIPascalOS/blob/main/Kernel/kernel.pas
However,The program will automatically call _start function(efi_main) due to the GNU linker(ld) will call this as a start entry.
It must be have error in kernel_main and not have error in PASCALMAIN.
I do not how, but at the function inside
kernel_initialize; his inside do not use
fillchar,zeromemory, .. Many times at intialized stage of application, these
function (fillchar,zeromemory, StrAlloc,) many time/s crash My app,
I replace fillchar with for clr:=00 to high() pinteger[clr]:=000;
Yes, is more slow, but I do not how, why Pascal.Runtime need the slow solution.
Do not forge, at intialized stage-application/s, the Pascal.system.pas need intialized others
20'DLL attached *.DLL
{--}
You crash too much with memory Leaks.
C:Q1=Everyone, have a function/ for test-integrity-of -memory?
I replace theses
efi_freemem(memmap.memory_descriptor);
efi_freemem(smemmap.memory_start);
efi_freemem(smemmap.memory_size);
Eu multumesc ArsenieBoca, doamne ajuta-ne, doamne ajuta. Eu multumesc
ArsenieBoca.
if (memmap.memory_descriptor<>nil) then
Begin
efi_freemem(memmap.memory_descriptor);
memmap.memory_descriptor:=nil;
End;
if (smemmap.memory_start<>nil) then
Begin efi_freemem(smemmap.memory_start);
smemmap.memory_start:=nil;
End;
End;