Revert "endian: #define __BYTE_ORDER"
[safe/jmp/linux-2.6] / arch / m68k / kernel / module.c
index 32969d0..cd6bcb1 100644 (file)
@@ -31,8 +31,6 @@ void *module_alloc(unsigned long size)
 void module_free(struct module *mod, void *module_region)
 {
        vfree(module_region);
-       /* FIXME: If module_region == mod->init_region, trim exception
-           table entries. */
 }
 
 /* We don't need anything special. */
@@ -149,6 +147,9 @@ void module_fixup(struct module *mod, struct m68k_fixup_info *start,
                case m68k_fixup_memoffset:
                        *(u32 *)fixup->addr = m68k_memoffset;
                        break;
+               case m68k_fixup_vnode_shift:
+                       *(u16 *)fixup->addr += m68k_virt_to_node_shift;
+                       break;
                }
        }
 }