apsun / loliOS

Lightweight & operational Linux-inspired OS.
33 stars 1 forks source link

Add aligned_alloc to myalloc #19

Closed apsun closed 3 years ago

apsun commented 5 years ago

This would let us get rid of the statically allocated kernel stacks (and hence remove the hard capped process limit).

apsun commented 3 years ago

Actually, this is redundant if we're able to just allocate whole pages directly (which naturally gives us alignment). Things that need aligned memory should bypass malloc and go directly to the page allocator.