sr.h (60727d8b86294910d41cbda1a50a855ea0537449) | sr.h (ab73970649667927197c62ff9a8ee5cd4e5e4d8d) |
---|---|
1/*- 2 * Copyright (C) 2002 Benno Rice. 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 --- 31 unchanged lines hidden (view full) --- 40#define SR_KP 0x20000000 /* User-state protection key */ 41#define SR_N 0x10000000 /* No-execute protection */ 42#define SR_VSID_MASK 0x00ffffff /* Virtual Segment ID mask */ 43 44/* Kernel segment register usage */ 45#define USER_SR 12 46#define KERNEL_SR 13 47#define KERNEL2_SR 14 | 1/*- 2 * Copyright (C) 2002 Benno Rice. 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 --- 31 unchanged lines hidden (view full) --- 40#define SR_KP 0x20000000 /* User-state protection key */ 41#define SR_N 0x10000000 /* No-execute protection */ 42#define SR_VSID_MASK 0x00ffffff /* Virtual Segment ID mask */ 43 44/* Kernel segment register usage */ 45#define USER_SR 12 46#define KERNEL_SR 13 47#define KERNEL2_SR 14 |
48#define KERNEL3_SR 15 |
|
48#define KERNEL_VSIDBITS 0xfffff 49#define KERNEL_SEGMENT (0xfffff0 + KERNEL_SR) 50#define KERNEL2_SEGMENT (0xfffff0 + KERNEL2_SR) 51#define EMPTY_SEGMENT 0xfffff0 52#define USER_ADDR ((void *)(USER_SR << ADDR_SR_SHFT)) 53#define SEGMENT_LENGTH 0x10000000 54#define SEGMENT_MASK 0xf0000000 55 56#endif /* !_MACHINE_SR_H_ */ | 49#define KERNEL_VSIDBITS 0xfffff 50#define KERNEL_SEGMENT (0xfffff0 + KERNEL_SR) 51#define KERNEL2_SEGMENT (0xfffff0 + KERNEL2_SR) 52#define EMPTY_SEGMENT 0xfffff0 53#define USER_ADDR ((void *)(USER_SR << ADDR_SR_SHFT)) 54#define SEGMENT_LENGTH 0x10000000 55#define SEGMENT_MASK 0xf0000000 56 57#endif /* !_MACHINE_SR_H_ */ |