- // test malloc & free
-
- uint8_t** arr = (uint8_t**)lxmalloc(10 * sizeof(uint8_t*));
-
- for (size_t i = 0; i < 10; i++) {
- arr[i] = (uint8_t*)lxmalloc((i + 1) * 2);
- }
-
- for (size_t i = 0; i < 10; i++) {
- lxfree(arr[i]);
- }
-
- uint8_t* big_ = lxmalloc(8192);
- big_[0] = 123;
- big_[1] = 23;
- big_[2] = 3;
-
- kprintf(KINFO "%u, %u, %u\n", big_[0], big_[1], big_[2]);
-
- // good free
- lxfree(arr);
- lxfree(big_);
-
- // timer_run_second(1, test_timer, NULL, TIMER_MODE_PERIODIC);
+ // no lxmalloc here! This can only be used within kernel, but here, we are in a dedicated process!
+ // any access to kernel method must be done via syscall