mmu_oea64.c (5b66e19686cb22dcec9c574b50dd0bf69711118c) mmu_oea64.c (1cd30eb6dd61f24520d2dfc71856ac94c4f7b5ad)
1/*-
2 * Copyright (c) 2008-2015 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 *

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

1893 entropy = (moea64_vsidcontext >> 20);
1894 continue;
1895 }
1896 i = ffs(~moea64_vsid_bitmap[n]) - 1;
1897 mask = 1 << i;
1898 hash &= VSID_HASHMASK & ~(VSID_NBPW - 1);
1899 hash |= i;
1900 }
1/*-
2 * Copyright (c) 2008-2015 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 *

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

1893 entropy = (moea64_vsidcontext >> 20);
1894 continue;
1895 }
1896 i = ffs(~moea64_vsid_bitmap[n]) - 1;
1897 mask = 1 << i;
1898 hash &= VSID_HASHMASK & ~(VSID_NBPW - 1);
1899 hash |= i;
1900 }
1901 if (hash == VSID_VRMA) /* also special, avoid this too */
1902 continue;
1901 KASSERT(!(moea64_vsid_bitmap[n] & mask),
1902 ("Allocating in-use VSID %#zx\n", hash));
1903 moea64_vsid_bitmap[n] |= mask;
1904 mtx_unlock(&moea64_slb_mutex);
1905 return (hash);
1906 }
1907
1908 mtx_unlock(&moea64_slb_mutex);

--- 746 unchanged lines hidden ---
1903 KASSERT(!(moea64_vsid_bitmap[n] & mask),
1904 ("Allocating in-use VSID %#zx\n", hash));
1905 moea64_vsid_bitmap[n] |= mask;
1906 mtx_unlock(&moea64_slb_mutex);
1907 return (hash);
1908 }
1909
1910 mtx_unlock(&moea64_slb_mutex);

--- 746 unchanged lines hidden ---