mm: vm: Add tracking of which segments are loaded

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
lib: avl: Add option to find close to key value

This can be used for quick searching in a key environment. Further
abstractions might be required in the future to make this a clean
solution though.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
mm: page_fault: Add the first bit of permissions

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
mm: pte: Fix a little misunderstanding in the comments

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: Add make optimising for size optional

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
arch: irq: Fix stack corruption issue

Look here for more information:

http://forum.osdev.org/viewtopic.php?f=13&t=26949

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
mm: vm: pagefault: Keep segment around for perms

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
mm: vm: Add destructive test.

Basically, if this doesn't cause the system to panic, we're in deep
trouble as this could pose a serious security issue in the future.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
mm: kmem_alloc: Panic on too small free requests!

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
Merge branch 'vm' into testing