<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kmi/src/pmem.c, branch master</title>
<subtitle>ACTIVE - Kernel with migrating threads as IPC</subtitle>
<id>https://metanimi.dy.fi/cgit/kmi/atom?h=master</id>
<link rel='self' href='https://metanimi.dy.fi/cgit/kmi/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/'/>
<updated>2024-10-30T00:18:12Z</updated>
<entry>
<title>tests pass</title>
<updated>2024-10-30T00:18:12Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-10-30T00:18:12Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=e7b5881903ad81efee63966e7d2c42524d465dfc'/>
<id>urn:sha1:e7b5881903ad81efee63966e7d2c42524d465dfc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>most of the way to passing tests</title>
<updated>2024-10-29T22:57:33Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-10-29T22:57:33Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=44a73ecab6e91519627786a5101cd4f1a2f2b0d7'/>
<id>urn:sha1:44a73ecab6e91519627786a5101cd4f1a2f2b0d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add magic assert</title>
<updated>2024-08-26T20:18:05Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-08-26T20:18:05Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=280e963e1334a21778e2f257fe09daa4890074a1'/>
<id>urn:sha1:280e963e1334a21778e2f257fe09daa4890074a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix memory leaks destroying threads</title>
<updated>2024-08-26T20:00:55Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-08-26T20:00:55Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=3f194f1c7264945a63b0018b159cc83bd9385c59'/>
<id>urn:sha1:3f194f1c7264945a63b0018b159cc83bd9385c59</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add malloc test</title>
<updated>2024-08-21T20:31:48Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-08-21T20:31:48Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=97ffab0a8472981b927d0f4e81bb72f6ecd69b86'/>
<id>urn:sha1:97ffab0a8472981b927d0f4e81bb72f6ecd69b86</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix LLVM</title>
<updated>2024-07-08T15:04:03Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-07-08T14:43:59Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=e134202611a50b358c147c92bfb8a7f443030b8b'/>
<id>urn:sha1:e134202611a50b358c147c92bfb8a7f443030b8b</id>
<content type='text'>
+ Anything extern is right out as LLVM doesn't produce correct code for
  them. Maybe if I added some extra attributes but I'm skeptical.
  Replaced with static variables and getters/setters.

+ Inline ASM is apparently a bit buggy, so use an assembly stub when jumping to init.

+ Minimize work done in main() to minimize chance of LLVM doing something silly.
  Still not 100% certain that I shouldn't just write the main() as an assembly stub
  in arch/riscv64 to be absolutely sure everything works as intended.

+ Make .kernel.start section SHF_ALLOC, otherwise lld complains about
  pc-relative addressing

Probably some other stuff as well that I'm forgetting right now. But at least with
LLVM14 LTO seems to work, which is pretty cool?
</content>
</entry>
<entry>
<title>simplify assertions</title>
<updated>2024-07-07T04:02:46Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-07-07T04:02:46Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=b97967ab660243b723f246db03c2e4a82e125f3f'/>
<id>urn:sha1:b97967ab660243b723f246db03c2e4a82e125f3f</id>
<content type='text'>
+ No real point having multiple different levels of assertions, just say
  you assert something and be done with it
</content>
</entry>
<entry>
<title>smp now seems to work</title>
<updated>2024-07-07T04:00:43Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-07-07T04:00:43Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=122374c362ba8bb9082385da3c82e264ab594f15'/>
<id>urn:sha1:122374c362ba8bb9082385da3c82e264ab594f15</id>
<content type='text'>
+ Had some minor issues with a wraparound of size_t that effectively
  meant that some regions were allocated twice. Also, booting should be
  a bit more reliable now, turned out that the previous iteration of the
  booting was just accidentally working due to the kernel being placed
  'close enough' in RAM to where it was linked to. Fixed by allocating a
  vmem of O1 that maps the kernel to a 2MiB boundary at boot, pretty
  nifty.
</content>
</entry>
<entry>
<title>core bringup + various warnings</title>
<updated>2024-07-06T20:37:11Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-07-06T20:37:11Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=3fedbb6e1f849c5e0a4033d68201d60c2fc48121'/>
<id>urn:sha1:3fedbb6e1f849c5e0a4033d68201d60c2fc48121</id>
<content type='text'>
+ dbg_fdt() is apparently broken, possibly due to UB or something, but
  it causes some issues with optimizations enabled. Remove it
  temporarily
</content>
</entry>
<entry>
<title>add RAM usage counting</title>
<updated>2024-07-06T19:08:50Z</updated>
<author>
<name>Kimplul</name>
<email>kimi.h.kuparinen@gmail.com</email>
</author>
<published>2024-07-06T19:08:50Z</published>
<link rel='alternate' type='text/html' href='https://metanimi.dy.fi/cgit/kmi/commit/?id=3528f88fc36df6964c0efed784ae223cfe93544e'/>
<id>urn:sha1:3528f88fc36df6964c0efed784ae223cfe93544e</id>
<content type='text'>
+ Slightly more overhead but will help track down possible memory leaks
  in the future. Could also add in a flag for turning off/on but I don't
  think the difference in performance is that significant.
</content>
</entry>
</feed>
