diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-09-22 12:35:00 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-10-09 13:30:59 -0400 |
commit | 62de31b4feb5eacc4139f4d9fc28ae102921b4c7 (patch) | |
tree | abc7644646894282e58daac29d90ac86e7b66c37 /src/post.c | |
parent | 4c599ef3960ed8f2aaf7a73980814ebe42e37bf3 (diff) | |
download | seabios-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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(); |