Subject:
|
Re: Modifying the BrickOS source code
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Tue, 15 Jul 2003 18:36:05 GMT
|
Viewed:
|
2791 times
|
| |
| |
In lugnet.robotics.rcx.legos, Joseph Woolley wrote:
>
> However, it is worth noting, mm_start is the end of the Kernel code. So
> mm_start is also used to determine if a piece of code is part of the
> kernel or a user program. User programs are located above mm_start
> since the kernel will allocate memory for them when they are downloaded
> (dll)
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 user programs are located below
mm_start? or am I just not seeing the big picture here?
Thanks,
Mike
|
|
Message has 1 Reply: | | Re: Modifying the BrickOS source code
|
| 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)
|
Message is in Reply To:
| | Re: Modifying the BrickOS source code
|
| 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)
|
12 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|