Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
icswx.c File Reference
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/spinlock.h>
#include <linux/module.h>
#include <linux/uaccess.h>
#include "icswx.h"

Go to the source code of this file.

Functions

void switch_cop (struct mm_struct *next)
 
int use_cop (unsigned long acop, struct mm_struct *mm)
 
 EXPORT_SYMBOL_GPL (use_cop)
 
void drop_cop (unsigned long acop, struct mm_struct *mm)
 
 EXPORT_SYMBOL_GPL (drop_cop)
 
int acop_handle_fault (struct pt_regs *regs, unsigned long address, unsigned long error_code)
 
 EXPORT_SYMBOL_GPL (acop_handle_fault)
 

Function Documentation

int acop_handle_fault ( struct pt_regs regs,
unsigned long  address,
unsigned long  error_code 
)

: regsiters at time of interrupt : storage address : Fault code, usually the DSISR or ESR depending on processor type

Return 0 if we are able to resolve the data storage fault that results from a CT miss in the ACOP register.

Definition at line 197 of file icswx.c.

void drop_cop ( unsigned long  acop,
struct mm_struct mm 
)

Stop using a coprocessor. : mask of coprocessor to be stopped. : The mm the coprocessor associated with.

Definition at line 129 of file icswx.c.

EXPORT_SYMBOL_GPL ( use_cop  )
EXPORT_SYMBOL_GPL ( drop_cop  )
EXPORT_SYMBOL_GPL ( acop_handle_fault  )
void switch_cop ( struct mm_struct next)

Definition at line 68 of file icswx.c.

int use_cop ( unsigned long  acop,
struct mm_struct mm 
)

Start using a coprocessor. : mask of coprocessor to be used. : The mm the coprocessor to associate with. Most likely current mm.

Return a positive PID if successful. Negative errno otherwise. The returned PID will be fed to the coprocessor to determine if an icswx transaction is authenticated.

Definition at line 85 of file icswx.c.