Skip to contentSkip to conversation

*_find_end_of_memory Mach Dep?

DISCUSSION Grant Erickson 2 participants 2 messages Jan 14, 2000 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Charles Lepple
Quoted 4 lines · Grant Erickson

Instead of having a mess of ifdef's and such in MMU_init for {apus, pmac, m8xx, oak, chrp, etc}_find_end_of_memory, is there any compelling reason not to make a ppc_md machine dependency entry for these?

When I converted some code to the ppc_md interface, I seem to remember a few cases where I couldn't do it that way because the ppc_md structure was not completely filled out. It can get to be a catch-22 -- there has to be one messy function.

Fair enough. However, since identify_machine is called before MMU_init and <platform>_init is called in identify_machine, then it's reasonable that the ppc_md structure is filled out by the time we hit MMU_init.

So, it seems reasonable that "identify_machine" remains the messy function and MMU_init could be cleaned up somewhat.

Grant

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 5 lines · Grant Erickson
Quoted 4 lines · Charles Lepple

When I converted some code to the ppc_md interface, I seem to remember a few cases where I couldn't do it that way because the ppc_md structure was not completely filled out. It can get to be a catch-22 -- there has to be one messy function.

I already checked this before I sent my reply, and it should work fine.

Quoted 2 lines

So, it seems reasonable that "identify_machine" remains the messy function and MMU_init could be cleaned up somewhat.

It only looks messy because you haven't seen it grow over the years :-). I think it is aging rather gracefully.....

	-- Dan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/