2 * arch/ppc/kernel/mol.h
6 * Mac-on-Linux hook macros
7 * <http://www.maconlinux.org>
9 * Copyright (C) 2000 Samuel Rydh (samuel@ibrium.se)
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation
17 #ifndef _PPC_KERNEL_MOL
18 #define _PPC_KERNEL_MOL
20 #include <linux/config.h>
23 #define MOL_INTERFACE_VERSION 3
25 #define MOL_HOOK(hook_num) \
26 lwz r0,(mol_interface + 4 * hook_num + 4)@l(0); \
33 #define MOL_HOOK_RESTORE(hook_num) \
41 #define MOL_HOOK_MMU(hook_num, scr) \
42 lis scr,(mol_interface + 4 * hook_num + 4)@ha; \
43 lwz scr,(mol_interface + 4 * hook_num + 4)@l(scr); \
50 #define MOL_HOOK_TLBMISS(hook_num) \
51 lwz r0,(mol_interface + 4 * hook_num + 4)@l(0); \
62 #define MOL_HOOK_RESTORE(num)
63 #define MOL_HOOK_MMU(num, scr)
64 #define MOL_HOOK_TLBMISS(num)
68 #endif /* _PPC_KERNEL_MOL */