slb.h (b17f9ad2c9da34e8544d02c3d530fe9fb41fdbe2) slb.h (54c562081ff82b6429078f76d44491e7d1e95673)
1/*-
2 * Copyright (C) 2009 Nathan Whitehorn
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

57 * 0x13bbUL) & (KERNEL_VSID_BIT - 1)) | \
58 KERNEL_VSID_BIT)
59
60#define SLBE_VALID 0x0000000008000000UL /* SLB entry valid */
61#define SLBE_INDEX_MASK 0x0000000000000fffUL /* SLB index mask*/
62#define SLBE_ESID_MASK 0xfffffffff0000000UL /* Effective segment ID mask */
63#define SLBE_ESID_SHIFT 28
64
1/*-
2 * Copyright (C) 2009 Nathan Whitehorn
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

57 * 0x13bbUL) & (KERNEL_VSID_BIT - 1)) | \
58 KERNEL_VSID_BIT)
59
60#define SLBE_VALID 0x0000000008000000UL /* SLB entry valid */
61#define SLBE_INDEX_MASK 0x0000000000000fffUL /* SLB index mask*/
62#define SLBE_ESID_MASK 0xfffffffff0000000UL /* Effective segment ID mask */
63#define SLBE_ESID_SHIFT 28
64
65/*
66 * User segment for copyin/out
67 */
68#define USER_SLB_SLOT 63
69#define USER_SLB_SLBE (((USER_ADDR >> ADDR_SR_SHFT) << SLBE_ESID_SHIFT) | \
70 SLBE_VALID | USER_SLB_SLOT)
71
65struct slb {
66 uint64_t slbv;
67 uint64_t slbe;
68};
69
70#endif /* !_MACHINE_SLB_H_ */
72struct slb {
73 uint64_t slbv;
74 uint64_t slbe;
75};
76
77#endif /* !_MACHINE_SLB_H_ */