amaneureka / AtomOS

A multitasking monolithic Kernel based x86 targeting Operating System written in C# from scratch aiming for high-level implementation of drivers in managed environment.
http://www.atomixos.com
BSD 3-Clause "New" or "Revised" License
1.26k stars 85 forks source link

[Kernel_H] Return from thread #28

Closed amaneureka closed 7 years ago

amaneureka commented 7 years ago

Return from thread should signal the parent process. Right now it throws a page fault because of invalid memory access execution.

basic code:

    new Thread(Parent, foo, Heap.kmalloc(0x1000) + 0x1000, 0x1000).Start();
    private static void foo()
    {
        return;
    }