Removed dead code

This commit is contained in:
2025-03-04 13:35:55 +01:00
parent df6f7d5a57
commit e5f0123eea
14 changed files with 54 additions and 63 deletions

View File

@ -1,6 +1,15 @@
import core
import sys
create(func *any) -> int {
stack := sys.mmap(0, 4096, 0x1|0x2, 0x02|0x20|0x100)
stack += 4096 - 8
store(stack, 8, core.exit)
stack -= 8
store(stack, 8, func)
return sys.clone(clone.vm|clone.fs|clone.files|clone.sighand|clone.parent|clone.thread|clone.io, stack, 0, 0, 0)
}
const clone {
vm 0x100
fs 0x200
@ -9,13 +18,4 @@ const clone {
parent 0x8000
thread 0x10000
io 0x80000000
}
create(func *any) -> int {
stack := sys.mmap(0, 4096, 0x1|0x2, 0x02|0x20|0x100)
stack += 4096 - 8
store(stack, 8, core.exit)
stack -= 8
store(stack, 8, func)
return sys.clone(clone.vm|clone.fs|clone.files|clone.sighand|clone.parent|clone.thread|clone.io, stack, 0, 0, 0)
}

View File

@ -1,7 +1,7 @@
extern kernel32 {
CreateThread(attributes int, stackSize int, address *any, parameter int) -> int
}
create(func *any) -> int {
return kernel32.CreateThread(0, 4096, func, 0)
}
extern kernel32 {
CreateThread(attributes int, stackSize int, address *any, parameter int) -> int
}