[ros-kernel] Can someone give me a hand in here

KJK::Hyperion noog at libero.it
Thu Dec 18 21:50:53 CET 2003


At 19.21 17/12/2003, you wrote:
>I was changing this file in ROS to speedup strlen but ReactOS crashes with 
>a page fault very quick since strlen is used almost everywhere

note that this is *tcs*len, not *str*len - i.e. it has to work for ANSI and 
Unicode strings as well. Look at the local tchar.h header for the macros I 
defined to make assembler code generic enough to support both 8-bit and 
16-bit characters. If you can't make tcslen type-generic, then change 
strlen.c to be stand-alone and leave tcslen.h alone, otherwise you'll break 
wcslen

>But I'm not used to this kind of assembler format.

do you know that the order of operands is the opposite of that of the Intel 
syntax?

>It could read at most 3 bytes beyond the ending 0 in the string but i 
>don't think it could be a problem since the page size is 4 kb

well, the string could be 4095 characters long and the next page could be 
unallocated



More information about the Ros-kernel mailing list