Re: A question about function split_mem_range

2018-03-25 Thread valdis . kletnieks
On Sun, 25 Mar 2018 22:32:42 +0800, Hao Lee said: > In arch/x86/mm/init.c, there is a function called split_mem_range[0]. > Its logic is very complicated and I can't figure out what it does. I > have added some debug statements in this function to print all > variable, but I still can't understand

A question about function split_mem_range

2018-03-25 Thread Hao Lee
Hi, I'm currently reading the memory management source code and get stuck on a function. In arch/x86/mm/init.c, there is a function called split_mem_range[0]. Its logic is very complicated and I can't figure out what it does. I have added some debug statements in this function to print all variab