Add initial HULK source and linker script
This commit is contained in:
1 parent
3e25ab6ae4
commit
8df1646c61
3 files changed
+62
-22
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import hulk.bootinfo;
|
||||
import hos.memory;
|
||||
import ldc.attributes;
|
||||
|
||||
@(ldc.attributes.section(".hulk_start"))
|
||||
extern(C) void hulk_start(BootInfo * bootinfo)
|
||||
{
|
||||
for (size_t y = 100u; y < 120u; y++)
|
||||
{
|
||||
memset32(&bootinfo.fb.buffer[y * bootinfo.fb.stride + 20u], 0xFF8800u, 20u);
|
||||
}
|
||||
|
||||
for (;;)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user