| | Re: Modifying the BrickOS source code Michael Martelli
|
| | Thanks to all with the help, I finally got my new News setup info (my original login wasnt working so I had to re-sign up but it took about 2 weeks to hear from lugnet, so Charlie posted some stuff for me). I am looking at mm.c for my project and I (...) (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
| | |
| | | | Re: Modifying the BrickOS source code Joseph Woolley
|
| | | | Mike, IIRC, mm_start is the beginning of the heap. When the system or a user program requests memory (new in C++ or malloc/calloc in C) the memory is taken from this block (from mm_start to the end of memory) What might be confusing is how the (...) (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: Modifying the BrickOS source code Michael Martelli
|
| | | | (...) Thanks for the description Joe, but in the above paragraph you seem to contradict yourself, you say that mm_start is the end of kernel mode, but alos that user programs are located above mm_start I do not understand that part, did you mean (...) (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: Modifying the BrickOS source code Joseph Woolley
|
| | | | Here is a visual representation: [ KERNEL ]mm_start[ HEAP ] The heap will contain ALL of the following: User Programs, User Allocated memory, Kernel allocated memory (not including static/global variables and constants). The only thing that is prior (...) (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: Modifying the BrickOS source code Michael Martelli
|
| | | | Thanks Joe, it makes sense now and I understand it is something that is difficutl to explain esp, through a message board. Thanks for helping me out... Mike (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
| | | | |