Kernel Mapping?
Posted: Wed Apr 01, 2009 1:32 am
Hi
It is me again with couple of questions but this time it is more like confusions.
So let me be straight:
1. Is there any potential problem in having kernel in lower half?
Let me make my point clearer, I loaded my kernel at 0x100000 and have it identity mapped from 0 to end symbol done by kernel code itself. This means my kernel is in lower half, is there any problem with it in long run?
2. I have identity mapped my kernel, is this ok?
3. Why should we map kernel address space in every processes address space, whether ring 0 or ring 3?
Can't we have a kernel address space not sticked in every tasks address space?
4. If I have loaded my kernel at 0x100000 and takes upto 1mb space (say) then can i compile my programs to
a) 0 vma
b) 0x200000 vma
c) any address
5. Does sticking kernel space in user tasks in this case ( point 4 ) matter?
These questions rather confusions if answered will definitely make my understanding clear.
Please help as u guys have always.
I know these questions may sound silly, but this is what is right now in my mind.
Please help!
It is me again with couple of questions but this time it is more like confusions.
So let me be straight:
1. Is there any potential problem in having kernel in lower half?
Let me make my point clearer, I loaded my kernel at 0x100000 and have it identity mapped from 0 to end symbol done by kernel code itself. This means my kernel is in lower half, is there any problem with it in long run?
2. I have identity mapped my kernel, is this ok?
3. Why should we map kernel address space in every processes address space, whether ring 0 or ring 3?
Can't we have a kernel address space not sticked in every tasks address space?
4. If I have loaded my kernel at 0x100000 and takes upto 1mb space (say) then can i compile my programs to
a) 0 vma
b) 0x200000 vma
c) any address
5. Does sticking kernel space in user tasks in this case ( point 4 ) matter?
These questions rather confusions if answered will definitely make my understanding clear.
Please help as u guys have always.
I know these questions may sound silly, but this is what is right now in my mind.
Please help!