[GSoC] [ARM] Patch by Johannes Wischert.

Fix wrong string comparison.
(btw the coding style police will inspect this, beware :p)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32336 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2009-08-13 23:41:40 +00:00
parent d8417ee73b
commit 78db3ad125
1 changed files with 2 additions and 2 deletions

View File

@ -657,10 +657,10 @@ mmu_init(void)
mmu_write_C1(mmu_read_C1() & ~((1<<29)|(1<<28)|(1<<0)));// access flag disabled, TEX remap disabled, mmu disabled
//calculate lowest RAM adress from MEMORYMAP
for(int i=0;i<ARRAY_SIZE(LOADER_MEMORYMAP);i++){
if(strcmp("RAM_free",LOADER_MEMORYMAP[i].name)){
if(strcmp("RAM_free",LOADER_MEMORYMAP[i].name)==0){
sNextPhysicalAddress=LOADER_MEMORYMAP[i].start;
}
if(strcmp("RAM_pt",LOADER_MEMORYMAP[i].name)){
if(strcmp("RAM_pt",LOADER_MEMORYMAP[i].name)==0){
sNextPageTableAddress=LOADER_MEMORYMAP[i].start + MMU_L1_TABLE_SIZE;
kPageTableRegionEnd = LOADER_MEMORYMAP[i].end;
sPageDirectory = (uint32 *) LOADER_MEMORYMAP[i].start ;