git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel - Changed MM_GetPhysAddr to take a pointer
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
libc.c
diff --git
a/KernelLand/Kernel/libc.c
b/KernelLand/Kernel/libc.c
index
bd34973
..
7a7cc05
100644
(file)
--- a/
KernelLand/Kernel/libc.c
+++ b/
KernelLand/Kernel/libc.c
@@
-210,8
+210,8
@@
int vsnprintf(char *__s, size_t __maxlen, const char *__format, va_list args)
if(pos < __maxlen)
{
if(__s) __s[pos] = ch;
if(pos < __maxlen)
{
if(__s) __s[pos] = ch;
- pos ++;
}
}
+ pos ++;
}
while((c = *__format++) != 0)
}
while((c = *__format++) != 0)
@@
-739,7
+739,7
@@
int CheckString(const char *String)
addr = (tVAddr)String;
addr = (tVAddr)String;
- if( !MM_GetPhysAddr( addr ) )
+ if( !MM_GetPhysAddr(
(void*)
addr ) )
return 0;
// Check 1st page
return 0;
// Check 1st page
@@
-751,7
+751,7
@@
int CheckString(const char *String)
{
if(bUser && !MM_IsUser(addr) )
return 0;
{
if(bUser && !MM_IsUser(addr) )
return 0;
- if(!bUser && !MM_GetPhysAddr(addr) )
+ if(!bUser && !MM_GetPhysAddr(
(void*)
addr) )
return 0;
}
addr ++;
return 0;
}
addr ++;
UCC
git Repository :: git.ucc.asn.au