Compare commits
No commits in common. "5abdef4be6cef378ced0d539456aee7ec946bd71" and "db01da58e1e20438a59ca168619d51ab336f4cd1" have entirely different histories.
5abdef4be6
...
db01da58e1
|
@ -1 +0,0 @@
|
||||||
# rtc_driver
|
|
|
@ -1,11 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "rtc_driver"
|
|
||||||
authors = [""]
|
|
||||||
|
|
||||||
[dependants.libraries]
|
|
||||||
|
|
||||||
[dependants.binaries]
|
|
||||||
hblang.version = "1.0.0"
|
|
||||||
|
|
||||||
[build]
|
|
||||||
command = "hblang src/main.hb"
|
|
|
@ -1,12 +0,0 @@
|
||||||
stn := @use("../../../libraries/stn/src/lib.hb");
|
|
||||||
.{sleep, log, memory} := stn
|
|
||||||
|
|
||||||
main := fn(): int {
|
|
||||||
loop {
|
|
||||||
log.info("BEFORE\0")
|
|
||||||
sleep.sleep_until_interrupt(8)
|
|
||||||
log.info("AFTER\0")
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
# tempfs
|
|
||||||
A ram backed filesystem for ableOS.
|
|
|
@ -1,11 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "tempfs"
|
|
||||||
authors = [""]
|
|
||||||
|
|
||||||
[dependants.libraries]
|
|
||||||
|
|
||||||
[dependants.binaries]
|
|
||||||
hblang.version = "1.0.0"
|
|
||||||
|
|
||||||
[build]
|
|
||||||
command = "hblang src/main.hb"
|
|
|
@ -1,12 +0,0 @@
|
||||||
stn := @use("../../../libraries/stn/src/lib.hb");
|
|
||||||
.{sleep} := stn
|
|
||||||
|
|
||||||
main := fn(): int {
|
|
||||||
tmpfs_buffer := buffer.create("TmpFS\0")
|
|
||||||
loop {
|
|
||||||
// TODO
|
|
||||||
// sleep.sleep_until_buffer(tmpfs_buffer)
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0
|
|
||||||
}
|
|
|
@ -6,25 +6,25 @@ AStruct := struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
test := fn(): uint {
|
test := fn(): uint {
|
||||||
alloc := allocators.FakeAlloc.init()
|
// alloc := allocators.FakeAlloc.init()
|
||||||
astruct := alloc.alloc(AStruct, 2)
|
// astruct := alloc.alloc(AStruct, 2)
|
||||||
if astruct.ptr != null {
|
// if astruct.ptr != null{
|
||||||
panic.panic("FakeAlloc actually allocated.")
|
// panic.panic("FakeAlloc actually allocated.")
|
||||||
}
|
// }
|
||||||
alloc.dealloc(&astruct.ptr, AStruct, 2)
|
// alloc.dealloc(&astruct.ptr, AStruct, 2)
|
||||||
alloc.deinit()
|
// alloc.deinit()
|
||||||
|
|
||||||
balloc := allocators.BlockAlloc.init()
|
balloc := allocators.BlockAlloc.init()
|
||||||
defer {
|
// defer {
|
||||||
balloc.deinit()
|
// balloc.deinit()
|
||||||
}
|
// }
|
||||||
bstruct := balloc.alloc(AStruct, 2)
|
bstruct := balloc.alloc(AStruct, 2)
|
||||||
if bstruct.ptr == null {
|
// if bstruct.ptr == null {
|
||||||
log.info("Hi\0")
|
// log.info("Hi\0")
|
||||||
// panic.panic("BlockAlloc actually didn't allocate.")
|
// // panic.panic("BlockAlloc actually didn't allocate.")
|
||||||
} else {
|
// } else {
|
||||||
log.info("Allocator functioned.\0")
|
// log.info("Allocator functioned.\0")
|
||||||
}
|
// }
|
||||||
balloc.dealloc(&bstruct.ptr, AStruct, 2)
|
// balloc.dealloc(bstruct_ptr, AStruct, 2)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
|
@ -49,5 +49,5 @@ path = "boot:///sunset_server.hbf"
|
||||||
# [boot.limine.ableos.modules.pcspkr]
|
# [boot.limine.ableos.modules.pcspkr]
|
||||||
# path = "boot:///pcspkr.hbf"
|
# path = "boot:///pcspkr.hbf"
|
||||||
|
|
||||||
[boot.limine.ableos.modules.rtc_driver]
|
# [boot.limine.ableos.modules.test]
|
||||||
path = "boot:///rtc_driver.hbf"
|
# path = "boot:///test.hbf"
|
||||||
|
|
Loading…
Reference in a new issue