<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pub/users/cem/toxicos.git/src/mm/heap.c, branch master</title>
<subtitle>[no description]</subtitle>
<link rel='alternate' type='text/html' href='http://toxiclabs.cc/cgit.cgi/pub/users/cem/toxicos.git/'/>
<entry>
<title>heap_malloc_pages should check for a negative value</title>
<updated>2025-09-14T12:08:28+00:00</updated>
<author>
<name>Carlos Maiolino</name>
<email>cem@toxiclabs.cc</email>
</author>
<published>2025-09-14T12:08:28+00:00</published>
<link rel='alternate' type='text/html' href='http://toxiclabs.cc/cgit.cgi/pub/users/cem/toxicos.git/commit/?id=833f883ab85d57d8f9cfae5a2181b3e097fae8bd'/>
<id>833f883ab85d57d8f9cfae5a2181b3e097fae8bd</id>
<content type='text'>
The first heap page (0x0) is a valid and usable page for now.

When checking the starting page from heap_get_start_page(), we need to
take that into account, otherwise we'll always return the first 0x0 page
as the allocated page.
This makes the users to always get 0x0 as the allocated region.

We loose the possibility for error checking here, so we'll need to
rework this API so we can get an error check.

Signed-off-by: Carlos Maiolino &lt;cem@toxiclabs.cc&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The first heap page (0x0) is a valid and usable page for now.

When checking the starting page from heap_get_start_page(), we need to
take that into account, otherwise we'll always return the first 0x0 page
as the allocated page.
This makes the users to always get 0x0 as the allocated region.

We loose the possibility for error checking here, so we'll need to
rework this API so we can get an error check.

Signed-off-by: Carlos Maiolino &lt;cem@toxiclabs.cc&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a simple heap implementation</title>
<updated>2025-09-14T10:56:39+00:00</updated>
<author>
<name>Carlos Maiolino</name>
<email>cem@toxiclabs.cc</email>
</author>
<published>2025-09-14T10:56:39+00:00</published>
<link rel='alternate' type='text/html' href='http://toxiclabs.cc/cgit.cgi/pub/users/cem/toxicos.git/commit/?id=e79687494bc3b01f42a79b0c355533e6e39e9a9d'/>
<id>e79687494bc3b01f42a79b0c355533e6e39e9a9d</id>
<content type='text'>
Add a simple API implementing a heap memory area.

This specifies 2 main data structures:
	struct heap - Defines a heap:
		Holds a table with all entries in the specific heap and
		the initial heap memory address

	struct heap_table - Describes the usage state of every PAGE
			    within the specific heap.

Signed-off-by: Carlos Maiolino &lt;cem@toxiclabs.cc&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a simple API implementing a heap memory area.

This specifies 2 main data structures:
	struct heap - Defines a heap:
		Holds a table with all entries in the specific heap and
		the initial heap memory address

	struct heap_table - Describes the usage state of every PAGE
			    within the specific heap.

Signed-off-by: Carlos Maiolino &lt;cem@toxiclabs.cc&gt;
</pre>
</div>
</content>
</entry>
</feed>
