aboutsummaryrefslogtreecommitdiff
path: root/src/post.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2015-09-22 12:35:00 -0400
committerKevin O'Connor <kevin@koconnor.net>2015-10-09 13:30:59 -0400
commit62de31b4feb5eacc4139f4d9fc28ae102921b4c7 (patch)
treeabc7644646894282e58daac29d90ac86e7b66c37 /src/post.c
parent4c599ef3960ed8f2aaf7a73980814ebe42e37bf3 (diff)
downloadseabios-hppa-62de31b4feb5eacc4139f4d9fc28ae102921b4c7.zip
seabios-hppa-62de31b4feb5eacc4139f4d9fc28ae102921b4c7.tar.gz
seabios-hppa-62de31b4feb5eacc4139f4d9fc28ae102921b4c7.tar.bz2
Always enable caching on transition32; backup/restore cr0 on call32
Always enable caching at start of 32bit code and always make sure the paging flag is off. Because this alters the cr0 register, perform a backup and restore of it when using call32(). Also, rename get/setcr0() to cr0_read/write() to more closely match other register access functions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/post.c')
-rw-r--r--src/post.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/post.c b/src/post.c
index 6803585..e19b06c 100644
--- a/src/post.c
+++ b/src/post.c
@@ -158,9 +158,6 @@ device_hardware_setup(void)
static void
platform_hardware_setup(void)
{
- // Enable CPU caching
- setcr0(getcr0() & ~(CR0_CD|CR0_NW));
-
// Make sure legacy DMA isn't running.
dma_setup();