]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Initialize the fault vector earlier in the boot process.
authorHelge Deller <deller@gmx.de>
Fri, 20 Nov 2015 09:50:01 +0000 (10:50 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 22 Nov 2015 11:22:43 +0000 (12:22 +0100)
commit68b9ba40212f5c393c9f11eb7b3a8c4454db7eca
tree7601eb68a3601c5124cbe511fb3bd0ae90a93af2
parentaf47c3c74c2c52ec3b9e7bbe3b5cc1684da1c78f
parisc: Initialize the fault vector earlier in the boot process.

A fault vector on parisc needs to be 2K aligned.  Furthermore the
checksum of the fault vector needs to sum up to 0 which is being
calculated and written at runtime.

Up to now we aligned both PA20 and PA11 fault vectors on the same 4K
page in order to easily write the checksum after having mapped the
kernel read-only (by mapping this page only as read-write).
But when we want to map the kernel text and data on huge pages this
makes things harder.
So, simplify it by aligning both fault vectors on 2K boundries and write
the checksum before we map the page read-only.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/entry.S
arch/parisc/kernel/setup.c
arch/parisc/kernel/traps.c