mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[kernel] Make channels stream based
Multiple changes regarding channels. Mainly channels are now stream based and can handle partial reads or writes. Channels now use the kernel buffers area with the related buffer_cache. Added a fake stdout stream channel and kernel task to read its contents to the screen in preparation for handing channels as stdin/stdout to processes.
This commit is contained in:
@@ -16,6 +16,7 @@ using memory::frame_size;
|
||||
using memory::heap_start;
|
||||
using memory::kernel_max_heap;
|
||||
using memory::kernel_offset;
|
||||
using memory::heap_start;
|
||||
using memory::page_offset;
|
||||
using memory::pml4e_kernel;
|
||||
using memory::pml4e_offset;
|
||||
@@ -23,7 +24,7 @@ using memory::table_entries;
|
||||
|
||||
using namespace kernel;
|
||||
|
||||
kutil::vm_space g_kernel_space {kernel_offset, (page_offset-kernel_offset)};
|
||||
kutil::vm_space g_kernel_space {kernel_offset, (heap_start-kernel_offset)};
|
||||
|
||||
|
||||
// These objects are initialized _before_ global constructors are called,
|
||||
|
||||
Reference in New Issue
Block a user