mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Delete extra whitespace at the end of line, which annoys quilt
git-svn-id: svn://coreboot.org/openbios/openbios-devel@284 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
/*
|
||||
/*
|
||||
* Creation Date: <2003/11/25 14:29:08 samuel>
|
||||
* Time-stamp: <2004/03/27 01:13:53 samuel>
|
||||
*
|
||||
*
|
||||
* <client.c>
|
||||
*
|
||||
*
|
||||
* OpenFirmware client interface
|
||||
*
|
||||
*
|
||||
* Copyright (C) 2003, 2004 Samuel Rydh (samuel@ibrium.se)
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include "openbios/config.h"
|
||||
#include "openbios/bindings.h"
|
||||
#include "openbios/of.h"
|
||||
|
||||
/* OF client interface. r3 points to the argument array. On return,
|
||||
/* OF client interface. r3 points to the argument array. On return,
|
||||
* r3 should contain 0==true or -1==false. r4-r12,cr0,cr1 may
|
||||
* be modified freely.
|
||||
*
|
||||
@@ -39,7 +39,7 @@ static int
|
||||
handle_calls( prom_args_t *pb )
|
||||
{
|
||||
int i, dstacksave = dstackcnt;
|
||||
|
||||
|
||||
/* printk("%s ([%d] -- [%d])\n", pb->service, pb->nargs, pb->nret ); */
|
||||
|
||||
for( i=pb->nargs-1; i>=0; i-- )
|
||||
@@ -59,11 +59,11 @@ handle_calls( prom_args_t *pb )
|
||||
#if 0
|
||||
/* useful for debug but not necessarily an error */
|
||||
if( i != pb->nret || dstacksave != dstacksave ) {
|
||||
printk("%s '%s': possible argument error (%d--%d) got %d\n",
|
||||
printk("%s '%s': possible argument error (%d--%d) got %d\n",
|
||||
pb->service, (char*)pb->args[0], pb->nargs-2, pb->nret, i );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
dstackcnt = dstacksave;
|
||||
return 0;
|
||||
}
|
||||
@@ -81,12 +81,12 @@ of_client_interface( int *params )
|
||||
for( i=0; i<pb->nargs; i++ )
|
||||
printk("%lx ", pb->args[i] );
|
||||
printk("\n");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* call-method exceptions are special */
|
||||
if( !strcmp("call-method", pb->service) || !strcmp("interpret", pb->service) )
|
||||
return handle_calls( pb );
|
||||
|
||||
|
||||
dstacksave = dstackcnt;
|
||||
for( i=0; i<pb->nargs; i++ )
|
||||
PUSH( pb->args[i] );
|
||||
@@ -104,9 +104,9 @@ of_client_interface( int *params )
|
||||
|
||||
for( i=0; i<pb->nret && dstackcnt > dstacksave ; i++ )
|
||||
pb->args[pb->nargs + i] = POP();
|
||||
|
||||
|
||||
if( i != pb->nret || dstackcnt != dstacksave ) {
|
||||
printk("service %s: argument count error (%d %d)\n",
|
||||
printk("service %s: argument count error (%d %d)\n",
|
||||
pb->service, i, dstackcnt - dstacksave );
|
||||
dstackcnt = dstacksave;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user