[ros-diffs] [arty] 22658: Forward functions verified working.

arty at svn.reactos.org arty at svn.reactos.org
Tue Jun 27 10:51:04 CEST 2006


Author: arty
Date: Tue Jun 27 12:51:04 2006
New Revision: 22658

URL: http://svn.reactos.org/svn/reactos?rev=22658&view=rev
Log:
Forward functions verified working.

Modified:
    branches/powerpc/reactos/tools/ofw_interface/calls.ofw
    branches/powerpc/reactos/tools/ofw_interface/ofw_interface.cpp
    branches/powerpc/reactos/tools/tools.mak

Modified: branches/powerpc/reactos/tools/ofw_interface/calls.ofw
URL: http://svn.reactos.org/svn/reactos/branches/powerpc/reactos/tools/ofw_interface/calls.ofw?rev=22658&r1=22657&r2=22658&view=diff
==============================================================================
--- branches/powerpc/reactos/tools/ofw_interface/calls.ofw (original)
+++ branches/powerpc/reactos/tools/ofw_interface/calls.ofw Tue Jun 27 12:51:04 2006
@@ -1,14 +1,14 @@
 # Function		Args	Returns	Types
 # Real OFW functions to proxy
 finddevice		1	1	char* int
-open			1	1	int int
+open			1	1	char* int
 getprop			4	1	int char* char*:arg3 int int
 write			3	1	int char*:arg2 int int
 read			3	1	int char*:arg2 int int
 exit			0	0	
 child			1	1	int int
 peer			1	1	int int
-seek			3	1	int int int int
+seek			2	1	int int int
 # Convenience functions that interact closely with OFW (written in BE asm)
 -dumpregs		0	0
 -print_string		1	0	char*

Modified: branches/powerpc/reactos/tools/ofw_interface/ofw_interface.cpp
URL: http://svn.reactos.org/svn/reactos/branches/powerpc/reactos/tools/ofw_interface/ofw_interface.cpp?rev=22658&r1=22657&r2=22658&view=diff
==============================================================================
--- branches/powerpc/reactos/tools/ofw_interface/ofw_interface.cpp (original)
+++ branches/powerpc/reactos/tools/ofw_interface/ofw_interface.cpp Tue Jun 27 12:51:04 2006
@@ -34,7 +34,7 @@
 }
 
 int round_up( int x, int factor ) {
-    return (x + (factor - 1)) & (factor - 1);
+    return (x + (factor - 1)) & ~(factor - 1);
 }
 
 std::string c_type( const std::string &intype ) {

Modified: branches/powerpc/reactos/tools/tools.mak
URL: http://svn.reactos.org/svn/reactos/branches/powerpc/reactos/tools/tools.mak?rev=22658&r1=22657&r2=22658&view=diff
==============================================================================
--- branches/powerpc/reactos/tools/tools.mak (original)
+++ branches/powerpc/reactos/tools/tools.mak Tue Jun 27 12:51:04 2006
@@ -52,6 +52,7 @@
 include tools/mkhive/mkhive.mak
 include tools/nci/nci.mak
 include tools/rbuild/rbuild.mak
+include tools/ofw_interface/ofw_interface.mak
 include tools/unicode/unicode.mak
 include tools/widl/widl.mak
 include tools/winebuild/winebuild.mak




More information about the Ros-diffs mailing list