Changeset 425 for trunk/src/sh_kern.c


Ignore:
Timestamp:
Feb 20, 2013, 7:30:02 PM (9 years ago)
Author:
katerina
Message:

Fix for tickets #329, #330, #331, #332

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_kern.c

    r362 r425  
    9090    N_("kernelcheckpci"),
    9191    sh_kern_set_pci
     92  },
     93  {
     94    N_("kernelcheckproc"),
     95    sh_kern_set_proc
    9296  },
    9397  {
     
    125129static int     ShKernIDT      = S_TRUE;
    126130static int     ShKernPCI      = S_TRUE;
     131static int     ShKernPROC     = S_TRUE;
    127132
    128133/* The address of system_call
     
    11041109#if SH_KERNEL_NUMBER < KERNEL_VERSION(2,6,21)
    11051110  struct inode_operations proc_root_inode;
    1106 
     1111#endif
     1112
     1113  if (ShKernPROC != S_TRUE)
     1114    return;
     1115
     1116/* 2.6.21 (((2) << 16) + ((6) << 8) + (21)) */
     1117#if SH_KERNEL_NUMBER < KERNEL_VERSION(2,6,21)
    11071118  memcpy (&proc_root_inode, &(kinfo->proc_root_inode), sizeof(struct inode_operations));
    11081119
     
    20172028}
    20182029
     2030int sh_kern_set_proc (const char * c)
     2031{
     2032  int i;
     2033  SL_ENTER(_("sh_kern_set_proc"));
     2034  i = sh_util_flagval(c, &ShKernPROC);
     2035  SL_RETURN(i, _("sh_kern_set_proc"));
     2036}
     2037
    20192038int sh_kern_set_sc_addr (const char * c)
    20202039{
Note: See TracChangeset for help on using the changeset viewer.