0x10cAtlas / AtlasOS

An operating system for DCPU-16.
109 stars 15 forks source link

Big Memory Allocation #44

Closed chessmaster42 closed 12 years ago

chessmaster42 commented 12 years ago

Placeholder issue to track the progress on allowing memory allocations beyond 1024 words.

rustyoz commented 12 years ago

couldn't this be done by having a function that wraps page_alloc and page_reserve to use a another parameter?

PS: yes i'll do it myself

rustyoz commented 12 years ago

What happens when the length of the code is equal to or just under a full page? wouldn't the applications stack start overwriting the code?

chessmaster42 commented 12 years ago

Yeah, I've been thinking about that same issue with the stack. Not sure what the best way is. I'm thinking that if we give a stack size of 128 it should be sufficient. So if the program's last page of data is > 1024-128 then we allocate another page.

rustyoz commented 12 years ago

that sounds pretty reasonable.