patch-2.4.22 linux-2.4.22/include/asm-m68k/pgtable.h
Next file: linux-2.4.22/include/asm-m68k/virtconvert.h
Previous file: linux-2.4.22/include/asm-m68k/motorola_pgtable.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
2003-08-25 04:44:43.000000000 -0700
- Orig file:
linux-2.4.21/include/asm-m68k/pgtable.h
- Orig date:
2001-10-25 13:53:55.000000000 -0700
diff -urN linux-2.4.21/include/asm-m68k/pgtable.h linux-2.4.22/include/asm-m68k/pgtable.h
@@ -154,9 +154,9 @@
#else
/* Encode and de-code a swap entry (must be !pte_none(e) && !pte_present(e)) */
-#define SWP_TYPE(x) (((x).val >> 1) & 0xff)
-#define SWP_OFFSET(x) ((x).val >> 10)
-#define SWP_ENTRY(type, offset) ((swp_entry_t) { ((type) << 1) | ((offset) << 10) })
+#define SWP_TYPE(x) (((x).val >> 3) & 0x1ff)
+#define SWP_OFFSET(x) ((x).val >> 12)
+#define SWP_ENTRY(type, offset) ((swp_entry_t) { ((type) << 3) | ((offset) << 12) })
#define pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
#define swp_entry_to_pte(x) ((pte_t) { (x).val })
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)