fb9ec2a8bc
mm: make malloc and free system calls
...
This is required because the heap is shared among
all tasks and protected using a mutex which only
works in kernel space.
2021-08-12 14:34:18 +02:00
f0dc3a3433
kiss capitalism goodbye for good
...
The CNPL will make sure that absolutely no corporation is going to get
anywhere near Ardix -- exactly as it should be. Fuck you, corporations!
2021-05-10 16:19:38 +02:00
af8210da4a
piss off capitalism
...
Ardix is being relicensed to GPL v3 or later. I have no idea whether you
can just do this if you feel like it or if it has any consequences, but
i kinda don't really care that much about it. Any changes made after
this commit will definitely fall under the GPL though, and considering
that only few things are really working yet anyways this is good enough
for me.
2021-02-28 02:18:39 +01:00
Felix Kopp
43add13fea
serial: make ringbuf write operations atomic
2020-11-29 20:34:57 +01:00
Felix Kopp
2ce25193fd
Get rid of unnecessary if branch
...
Branching is slow compared to ALU operations and stuff, you know
2020-11-28 04:20:39 +01:00
Felix Kopp
7997d6ca07
The amount of bs code I write is fascinating
2020-11-24 23:46:33 +01:00
Felix Kopp
0c24e3fde8
Fix typos and possible typecast bugs
2020-11-14 04:01:50 +01:00
Felix Kopp
2778fad339
Get rid of unnecessary loop counter
...
Incrementing counters in those loops are redundant
as we are keeping track of the ptr offsets anyways
2020-11-11 19:53:08 +01:00
Felix Kopp
1fa5d159a7
Simplify ringbuf indexing
...
This whole pointer arithmetic things might be all
fancy and stuff, but the diff should make it clear
that it is just unnecessarily complicated.
2020-10-30 18:07:29 +01:00
Felix Kopp
c031bf8611
Add ringbuf_size API
...
This might become useful if we want to dynamically
allocate an array that stores the entire queue.
2020-10-30 17:51:19 +01:00
Felix Kopp
745623afb2
I am stoopid (and fixed some bugs)
2020-10-14 11:29:02 +00:00
Felix Kopp
0ded77495b
Add ring buffer implementation
...
The next big step is to implement some sort of serial console in order
to get some debug output on real hardware (unfortunately, I don't have
a hardware debugger).
2020-10-12 19:07:03 +02:00