The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/asm-alpha/module.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #ifndef _ASM_ALPHA_MODULE_H
    2 #define _ASM_ALPHA_MODULE_H
    3 /*
    4  * This file contains the alpha architecture specific module code.
    5  */
    6 
    7 #define module_map(x)           vmalloc(x)
    8 #define module_unmap(x)         vfree(x)
    9 #define module_arch_init(x)     alpha_module_init(x)
   10 #define arch_init_modules(x)    alpha_init_modules(x)
   11 
   12 static inline int
   13 alpha_module_init(struct module *mod)
   14 {
   15         if (!mod_bound(mod->gp - 0x8000, 0, mod)) {
   16                 printk(KERN_ERR "module_arch_init: mod->gp out of bounds.\n");
   17                 return 1;
   18         }
   19         return 0;
   20 }
   21 
   22 static inline void
   23 alpha_init_modules(struct module *mod)
   24 {
   25         __asm__("stq $29,%0" : "=m" (mod->gp));
   26 }
   27 
   28 #endif /* _ASM_ALPHA_MODULE_H */

Cache object: 4d16c6a3f09182649025966402d6ef10


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.