In the IEEE 1275-1994 specification the parameters for Client Interface calls

are not in forth stack order but in reversed (heh!) order. Our implementation
confused this.

This second patch is fairly straightforward; probably the only unexpected part is
the need to rename the existing /openprom/client-services "claim" and
"release" words to "cif-claim" and "cif-release" respectively. This is
because we need to use the "claim" and "release" words in
forth/system/ciface.fs to reverse the argument order before calling the real
underlying words.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@637 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland
2009-12-02 10:44:35 +00:00
committed by Mark Cave-Ayland
parent 5e57ac49a0
commit ba52470cce
7 changed files with 59 additions and 54 deletions

View File

@@ -469,6 +469,6 @@ void ob_mmu_init(const char *cpuname, uint64_t ram_size)
push_str("/openprom/client-services");
fword("find-device");
bind_func("claim", mmu_claim);
bind_func("release", mmu_release);
bind_func("cif-claim", mmu_claim);
bind_func("cif-release", mmu_release);
}