hi everyone,
i've got 2 points:
1. At the moment I'm not sure what's the advantage in mapping the kernel code in every process. But as it is used widely used I think there should be one
2. Is the following procedure for mapping an higher half kernel correct?
a) identity map the kernel memory at the moment when paging is enabled
b) also map the kernel to the higher half
c) for every new process copy the page entries/tables from b) to the new page directory.
greetings fencer
Why use higher half kernel?
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Why use higher half kernel?
What do you think would happen when you make an error, the processor traps into kernel land, and there is no kernel there? </rhetoric question>
Your approach looks fine. You might want to consider to remove the identity mapped version when you are in the higher half - you won't be accidentally messing things up there if you forget about it.
Your approach looks fine. You might want to consider to remove the identity mapped version when you are in the higher half - you won't be accidentally messing things up there if you forget about it.
Re: Why use higher half kernel?
okay, thanks for your reply.