Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
ltp
/
7dd48f3ef716443c6379b1531c069b99b3da7857
/
testcases
/
kernel
/
syscalls
/
switch
/
switch01.c
7dd48f3
Fix the build error for some systax error. Also fix some warnings. Signed-off-by: Jin Bing Guo <guojb@cn.ibm.com>.
by subrata_modak
· 16 years ago
cb3cae1
Looks OK as far as I can see, except that I wonder why you check for being root: since there is no restriction by the kernel on which processes can use this system call. A process can't do anything to any other process using this system call, so there's no reason to restrict it. Also you might like to call it "endian_switch()" rather than just "switch()". Paul Mackerras <paulus@samba.org>.
by subrata_modak
· 16 years ago
de78ad0
This can only be tested on a POWER6 machine. A program to test it is attached. --Paul Mackerras.
by subrata_modak
· 16 years ago