/drivers/firmware/

rop/robust-tie-break'>prop/robust-tie-break The LITMUS^RT kernel.Bjoern Brandenburg
aboutsummaryrefslogblamecommitdiffstats
path: root/kernel/compat.c
blob: 42a1ed4b61b172afe1693234a4c68e5cfb695610 (plain) (tree)


















                                                                        


                           
                        
                          
                               

                        














                                                                                      
                                                                         
                                                                         
 

                                
 
                                           

                               
                                 

                               

                                                                          
 

                                                    

                                       

                   















































































































































                                                                                       






                                                           

                                     

































































































































































































































                                                                                  

                                                                     
 



                                                                        
 
 

                                                               
 



                                                                        
 
 

















                                                                        
                                                          
                                                               
                                                               
 






                                               
                               




                                                                     
                      


                                                              
 


                                                         
 

                           
                             



                                         

                                                                  


                                                        
 





                                                    
                           

                                         
                               
                         
                          



                                                                
 





                                                    
                           






                                                                
                               
                   
 





                                                   
                           






                                                               
                               
                   
 
 























                                                                                 





                                                                 
                                
                                      
 
                                           







                                                                   
 


                                                      





                                                                

                   










                                                                  
                                         









                                                                          
                                                                               



















































































                                                                              



                                                                               













































                                                                             
                                                                          




























































                                                                  



























                                                                                                   

























































                                                                           


                                                                        
                                              










                                                                   
                                               




                                                                          
































                                                                                
      

































































                                                                             
/*
 *  linux/kernel/compat.c
 *
 *  Kernel compatibililty routines for e.g. 32 bit syscall support
 *  on 64 bit kernels.
 *
 *  Copyright (C) 2002-2003 Stephen Rothwell, IBM Corporation
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as
 *  published by the Free Software Foundation.
 */

#include <linux/linkage.h>
#include <linux/compat.h>
#include <linux/errno.h>
#include <linux/time.h>
#include <linux/signal.h>
#include <linux/sched.h>	/* for MAX_SCHEDULE_TIMEOUT */
#include <linux/syscalls.h>
#include <linux/unistd.h>
#include <linux/security.h>
#include <linux/timex.h>
#include <linux/migrate.h>
#include <linux/posix-timers.h>

#include <asm/uaccess.h>

int get_compat_timespec(struct timespec *ts, const struct compat_timespec __user *cts)
{
	return (!access_ok(VERIFY_READ, cts, sizeof(*cts)) ||