pgalloc.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) pgalloc.h (1e133ab296f3ff8d9e58a5e758291ed39ba72ad7)
1/*
2 * S390 version
3 * Copyright IBM Corp. 1999, 2000
4 * Author(s): Hartmut Penner (hp@de.ibm.com)
5 * Martin Schwidefsky (schwidefsky@de.ibm.com)
6 *
7 * Derived from "include/asm-i386/pgalloc.h"
8 * Copyright (C) 1994 Linus Torvalds

--- 9 unchanged lines hidden (view full) ---

18unsigned long *crst_table_alloc(struct mm_struct *);
19void crst_table_free(struct mm_struct *, unsigned long *);
20
21unsigned long *page_table_alloc(struct mm_struct *);
22void page_table_free(struct mm_struct *, unsigned long *);
23void page_table_free_rcu(struct mmu_gather *, unsigned long *, unsigned long);
24extern int page_table_allocate_pgste;
25
1/*
2 * S390 version
3 * Copyright IBM Corp. 1999, 2000
4 * Author(s): Hartmut Penner (hp@de.ibm.com)
5 * Martin Schwidefsky (schwidefsky@de.ibm.com)
6 *
7 * Derived from "include/asm-i386/pgalloc.h"
8 * Copyright (C) 1994 Linus Torvalds

--- 9 unchanged lines hidden (view full) ---

18unsigned long *crst_table_alloc(struct mm_struct *);
19void crst_table_free(struct mm_struct *, unsigned long *);
20
21unsigned long *page_table_alloc(struct mm_struct *);
22void page_table_free(struct mm_struct *, unsigned long *);
23void page_table_free_rcu(struct mmu_gather *, unsigned long *, unsigned long);
24extern int page_table_allocate_pgste;
25
26int set_guest_storage_key(struct mm_struct *mm, unsigned long addr,
27 unsigned long key, bool nq);
28unsigned long get_guest_storage_key(struct mm_struct *mm, unsigned long addr);
29
30static inline void clear_table(unsigned long *s, unsigned long val, size_t n)
31{
32 typedef struct { char _[n]; } addrtype;
33
34 *s = val;
35 n = (n / 256) - 1;
36 asm volatile(
37 " mvc 8(248,%0),0(%0)\n"

--- 95 unchanged lines hidden ---
26static inline void clear_table(unsigned long *s, unsigned long val, size_t n)
27{
28 typedef struct { char _[n]; } addrtype;
29
30 *s = val;
31 n = (n / 256) - 1;
32 asm volatile(
33 " mvc 8(248,%0),0(%0)\n"

--- 95 unchanged lines hidden ---