| | Re: My problems with adding a Best Fit algorithm for memory management to kernel/mm.c
|
|
(...) So, if I understand you correctly, your concern is that the OS tasks move around the first time you power off & on, but not anytime thereafter? Assuming this to be the case, then: 1) When you first download BrickOS, there is a large chunk of (...) (21 years ago, 7-Dec-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: My problems with adding a Best Fit algorithm for memory management to kernel/mm.c
|
|
(...) Mark, Thanks for the reply, and sorry I forgot to include some more details I have results from 2 memory scans (the values may be a bit off from each other (i.e. starting addresses, but that is becuase they are from 2 times I ran it, and I (...) (21 years ago, 7-Dec-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: My problems with adding a Best Fit algorithm for memory management to kernel/mm.c
|
|
(...) Hi Mike, It would be helpful to see each of the memory block dumps and some notation as to what actions you took between each dump (i.e. RCX on/off, program downloaded, etc...) Mark (21 years ago, 7-Dec-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: My problems with adding a Best Fit algorithm for memory management to kernel/mm.c
|
|
Well, I have another problem - this time with Worst Fit. It may be becuase I have been looking at this code for so much time over the past few months, but I have encountered this problem with my implementation and my mind is boggled (as well as (...) (21 years ago, 7-Dec-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Editing Makefile (adding comman line arguements)
|
|
(...) Ed, Thanks for the reply, I will look at that manual, I never knew to look there. I bet it will help me out. Thanks Mike (21 years ago, 7-Dec-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Editing Makefile (adding comman line arguements)
|
|
(...) Mike, You might start off by checking the manual for GNU Make at (URL) just look within the various makefiles within the brickOS code. Try Makefile.commom at brickOS root. Ed (21 years ago, 7-Dec-03, to lugnet.robotics.rcx.legos)
|
|
| | Editing Makefile (adding comman line arguements)
|
|
I am trying to edit Makefile in the main brickos dir so that I can access the arguements on the command line when I enter "make _____" to compile the directory. I need to do so because I need to have a certain command execute when the arguements are (...) (21 years ago, 6-Dec-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: My problems with adding a Best Fit algorithm for memory management to kernel/mm.c
|
|
(...) Yeah, very true. Those lines where in there becuase of the error I originally had in my code, but since my code changed (and is correct) those lines are not needed). Thanks Mike (21 years ago, 6-Dec-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: My problems with adding a Best Fit algorithm for memory management to kernel/mm.c
|
|
(...) BTW, you can delete these two lines of intialization (i.e. lines 12 & 15 in the above function) as the intialized value gets clobbered on finding the first suitable sized block: 12) mm_best_free=ptr; 15) mm_best_free++; //this must point to (...) (21 years ago, 6-Dec-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: My problems with adding a Best Fit algorithm for memory management to kernel/mm.c
|
|
(...) Sure thing sorry, the problem was that I had the wrong variable in one of the if statement, I copied it over wrong from my hand-written notes I made of the Alg ===...=== void *malloc(size_t size) { size_t *ptr,*next, bestSize, *mm_best_free; (...) (21 years ago, 6-Dec-03, to lugnet.robotics.rcx.legos)
|