[openfirmware] r1389 - cpu/x86/pc
svn at openfirmware.info
svn at openfirmware.info
Sat Oct 3 00:04:20 CEST 2009
Author: wmb
Date: 2009-10-03 00:04:20 +0200 (Sat, 03 Oct 2009)
New Revision: 1389
Modified:
cpu/x86/pc/resetend.fth
Log:
PC resetend.fth - added commented-out diagnostic callouts to debug
memory problems before inflate.
Modified: cpu/x86/pc/resetend.fth
===================================================================
--- cpu/x86/pc/resetend.fth 2009-10-02 22:03:37 UTC (rev 1388)
+++ cpu/x86/pc/resetend.fth 2009-10-02 22:04:20 UTC (rev 1389)
@@ -112,6 +112,29 @@
\ h# 25 # al mov al h# 80 # out
\ ascii m report
+
+0 [if] \ Dump page directory
+ mmxcr
+ cr3 ax mov ax mmxdot
+ mmxcr
+ cr3 ax mov ax h# 1000 mmxdump
+[then]
+0 [if] \ Dump page tables
+ mmxcr
+ cr3 ax mov h# ffc [ax] ax mov h# fffff000 # ax and ax mmxdot
+ mmxcr
+ cr3 ax mov h# ffc [ax] ax mov h# fffff000 # ax and ax h# 1000 mmxdump
+ mmxcr
+ cr3 ax mov h# ff8 [ax] ax mov h# fffff000 # ax and ax mmxdot
+ mmxcr
+ cr3 ax mov h# ff8 [ax] ax mov h# fffff000 # ax and ax h# 1000 mmxdump
+[then]
+0 [if]
+ fw-virt-base to ramtest-start
+ fw-virt-base /fw-ram + to ramtest-end
+ fload ${BP}/cpu/x86/pc/ramtest.fth
+[then]
+
inflate-base # ax mov \ Base address of inflater
ax call \ Inflate the firmware
More information about the openfirmware
mailing list