mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
update briq/mol/pearpc client interface to use ucell type (Igor Kovalenko)
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@523 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -187,12 +187,12 @@ DECLARE_NODE( mmu_ciface, 0, 0, "/packages/client-iface" );
|
||||
static void
|
||||
mem_claim( void )
|
||||
{
|
||||
int align = POP();
|
||||
int size = POP();
|
||||
int phys = POP();
|
||||
int ret = ofmem_claim_phys( phys, size, align );
|
||||
ucell align = POP();
|
||||
ucell size = POP();
|
||||
ucell phys = POP();
|
||||
ucell ret = ofmem_claim_phys( phys, size, align );
|
||||
|
||||
if( ret == -1 ) {
|
||||
if( ret == (ucell)-1 ) {
|
||||
printk("MEM: claim failure\n");
|
||||
throw( -13 );
|
||||
return;
|
||||
@@ -211,10 +211,10 @@ mem_release( void )
|
||||
static void
|
||||
mmu_claim( void )
|
||||
{
|
||||
int align = POP();
|
||||
int size = POP();
|
||||
int phys = POP();
|
||||
int ret = ofmem_claim_virt( phys, size, align );
|
||||
ucell align = POP();
|
||||
ucell size = POP();
|
||||
ucell phys = POP();
|
||||
ucell ret = ofmem_claim_virt( phys, size, align );
|
||||
|
||||
if( ret == -1 ) {
|
||||
printk("MMU: CLAIM failure\n");
|
||||
@@ -235,11 +235,11 @@ mmu_release( void )
|
||||
static void
|
||||
mmu_map( void )
|
||||
{
|
||||
int mode = POP();
|
||||
int size = POP();
|
||||
int virt = POP();
|
||||
int phys = POP();
|
||||
int ret;
|
||||
ucell mode = POP();
|
||||
ucell size = POP();
|
||||
ucell virt = POP();
|
||||
ucell phys = POP();
|
||||
ucell ret;
|
||||
|
||||
/* printk("mmu_map: %x %x %x %x\n", phys, virt, size, mode ); */
|
||||
ret = ofmem_map( phys, virt, size, mode );
|
||||
@@ -262,15 +262,15 @@ mmu_unmap( void )
|
||||
static void
|
||||
mmu_translate( void )
|
||||
{
|
||||
ulong mode;
|
||||
int virt = POP();
|
||||
int phys = ofmem_translate( virt, &mode );
|
||||
ucell mode;
|
||||
ucell virt = POP();
|
||||
ucell phys = ofmem_translate( virt, &mode );
|
||||
|
||||
if( phys == -1 ) {
|
||||
PUSH( 0 );
|
||||
} else {
|
||||
PUSH( phys );
|
||||
PUSH( (int)mode );
|
||||
PUSH( mode );
|
||||
PUSH( -1 );
|
||||
}
|
||||
}
|
||||
@@ -279,10 +279,10 @@ mmu_translate( void )
|
||||
static void
|
||||
ciface_claim( void )
|
||||
{
|
||||
int align = POP();
|
||||
int size = POP();
|
||||
int virt = POP();
|
||||
int ret = ofmem_claim( virt, size, align );
|
||||
ucell align = POP();
|
||||
ucell size = POP();
|
||||
ucell virt = POP();
|
||||
ucell ret = ofmem_claim( virt, size, align );
|
||||
|
||||
/* printk("ciface_claim: %08x %08x %x\n", virt, size, align ); */
|
||||
PUSH( ret );
|
||||
|
||||
Reference in New Issue
Block a user