diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-12 20:07:51 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:12:31 -0500 |
commit | ff02e0d26f139ad95ec3a7e94f88faccaa180dff (patch) | |
tree | 7a872c9792561c77c672ba640b80134c592d93c7 /arch/sparc64/mm | |
parent | 221b2fb818c307e1cb47e036a1671ca554d9cd0a (diff) |
[SPARC64]: Move PTE field definitions back into asm/pgtable.h
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/mm')
-rw-r--r-- | arch/sparc64/mm/init.c | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 9c2fc239f3ee..81f9f4bffaff 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -1334,90 +1334,6 @@ void free_initrd_mem(unsigned long start, unsigned long end) | |||
1334 | } | 1334 | } |
1335 | #endif | 1335 | #endif |
1336 | 1336 | ||
1337 | /* SUN4U pte bits... */ | ||
1338 | #define _PAGE_SZ4MB_4U 0x6000000000000000 /* 4MB Page */ | ||
1339 | #define _PAGE_SZ512K_4U 0x4000000000000000 /* 512K Page */ | ||
1340 | #define _PAGE_SZ64K_4U 0x2000000000000000 /* 64K Page */ | ||
1341 | #define _PAGE_SZ8K_4U 0x0000000000000000 /* 8K Page */ | ||
1342 | #define _PAGE_NFO_4U 0x1000000000000000 /* No Fault Only */ | ||
1343 | #define _PAGE_IE_4U 0x0800000000000000 /* Invert Endianness */ | ||
1344 | #define _PAGE_SOFT2_4U 0x07FC000000000000 /* Software bits, set 2 */ | ||
1345 | #define _PAGE_RES1_4U 0x0002000000000000 /* Reserved */ | ||
1346 | #define _PAGE_SZ32MB_4U 0x0001000000000000 /* (Panther) 32MB page */ | ||
1347 | #define _PAGE_SZ256MB_4U 0x2001000000000000 /* (Panther) 256MB page */ | ||
1348 | #define _PAGE_SN_4U 0x0000800000000000 /* (Cheetah) Snoop */ | ||
1349 | #define _PAGE_RES2_4U 0x0000780000000000 /* Reserved */ | ||
1350 | #define _PAGE_PADDR_4U 0x000007FFFFFFE000 /* (Cheetah) paddr[42:13] */ | ||
1351 | #define _PAGE_SOFT_4U 0x0000000000001F80 /* Software bits: */ | ||
1352 | #define _PAGE_EXEC_4U 0x0000000000001000 /* Executable SW bit */ | ||
1353 | #define _PAGE_MODIFIED_4U 0x0000000000000800 /* Modified (dirty) */ | ||
1354 | #define _PAGE_FILE_4U 0x0000000000000800 /* Pagecache page */ | ||
1355 | #define _PAGE_ACCESSED_4U 0x0000000000000400 /* Accessed (ref'd) */ | ||
1356 | #define _PAGE_READ_4U 0x0000000000000200 /* Readable SW Bit */ | ||
1357 | #define _PAGE_WRITE_4U 0x0000000000000100 /* Writable SW Bit */ | ||
1358 | #define _PAGE_PRESENT_4U 0x0000000000000080 /* Present */ | ||
1359 | #define _PAGE_L_4U 0x0000000000000040 /* Locked TTE */ | ||
1360 | #define _PAGE_CP_4U 0x0000000000000020 /* Cacheable in P-Cache */ | ||
1361 | #define _PAGE_CV_4U 0x0000000000000010 /* Cacheable in V-Cache */ | ||
1362 | #define _PAGE_E_4U 0x0000000000000008 /* side-Effect */ | ||
1363 | #define _PAGE_P_4U 0x0000000000000004 /* Privileged Page */ | ||
1364 | #define _PAGE_W_4U 0x0000000000000002 /* Writable */ | ||
1365 | |||
1366 | /* SUN4V pte bits... */ | ||
1367 | #define _PAGE_NFO_4V 0x4000000000000000 /* No Fault Only */ | ||
1368 | #define _PAGE_SOFT2_4V 0x3F00000000000000 /* Software bits, set 2 */ | ||
1369 | #define _PAGE_MODIFIED_4V 0x2000000000000000 /* Modified (dirty) */ | ||
1370 | #define _PAGE_ACCESSED_4V 0x1000000000000000 /* Accessed (ref'd) */ | ||
1371 | #define _PAGE_READ_4V 0x0800000000000000 /* Readable SW Bit */ | ||
1372 | #define _PAGE_WRITE_4V 0x0400000000000000 /* Writable SW Bit */ | ||
1373 | #define _PAGE_PADDR_4V 0x00FFFFFFFFFFE000 /* paddr[55:13] */ | ||
1374 | #define _PAGE_IE_4V 0x0000000000001000 /* Invert Endianness */ | ||
1375 | #define _PAGE_E_4V 0x0000000000000800 /* side-Effect */ | ||
1376 | #define _PAGE_CP_4V 0x0000000000000400 /* Cacheable in P-Cache */ | ||
1377 | #define _PAGE_CV_4V 0x0000000000000200 /* Cacheable in V-Cache */ | ||
1378 | #define _PAGE_P_4V 0x0000000000000100 /* Privileged Page */ | ||
1379 | #define _PAGE_EXEC_4V 0x0000000000000080 /* Executable Page */ | ||
1380 | #define _PAGE_W_4V 0x0000000000000040 /* Writable */ | ||
1381 | #define _PAGE_SOFT_4V 0x0000000000000030 /* Software bits */ | ||
1382 | #define _PAGE_FILE_4V 0x0000000000000020 /* Pagecache page */ | ||
1383 | #define _PAGE_PRESENT_4V 0x0000000000000010 /* Present */ | ||
1384 | #define _PAGE_RESV_4V 0x0000000000000008 /* Reserved */ | ||
1385 | #define _PAGE_SZ16GB_4V 0x0000000000000007 /* 16GB Page */ | ||
1386 | #define _PAGE_SZ2GB_4V 0x0000000000000006 /* 2GB Page */ | ||
1387 | #define _PAGE_SZ256MB_4V 0x0000000000000005 /* 256MB Page */ | ||
1388 | #define _PAGE_SZ32MB_4V 0x0000000000000004 /* 32MB Page */ | ||
1389 | #define _PAGE_SZ4MB_4V 0x0000000000000003 /* 4MB Page */ | ||
1390 | #define _PAGE_SZ512K_4V 0x0000000000000002 /* 512K Page */ | ||
1391 | #define _PAGE_SZ64K_4V 0x0000000000000001 /* 64K Page */ | ||
1392 | #define _PAGE_SZ8K_4V 0x0000000000000000 /* 8K Page */ | ||
1393 | |||
1394 | #if PAGE_SHIFT == 13 | ||
1395 | #define _PAGE_SZBITS_4U _PAGE_SZ8K_4U | ||
1396 | #define _PAGE_SZBITS_4V _PAGE_SZ8K_4V | ||
1397 | #elif PAGE_SHIFT == 16 | ||
1398 | #define _PAGE_SZBITS_4U _PAGE_SZ64K_4U | ||
1399 | #define _PAGE_SZBITS_4V _PAGE_SZ64K_4V | ||
1400 | #elif PAGE_SHIFT == 19 | ||
1401 | #define _PAGE_SZBITS_4U _PAGE_SZ512K_4U | ||
1402 | #define _PAGE_SZBITS_4V _PAGE_SZ512K_4V | ||
1403 | #elif PAGE_SHIFT == 22 | ||
1404 | #define _PAGE_SZBITS_4U _PAGE_SZ4MB_4U | ||
1405 | #define _PAGE_SZBITS_4V _PAGE_SZ4MB_4V | ||
1406 | #else | ||
1407 | #error Wrong PAGE_SHIFT specified | ||
1408 | #endif | ||
1409 | |||
1410 | #if defined(CONFIG_HUGETLB_PAGE_SIZE_4MB) | ||
1411 | #define _PAGE_SZHUGE_4U _PAGE_SZ4MB_4U | ||
1412 | #define _PAGE_SZHUGE_4V _PAGE_SZ4MB_4V | ||
1413 | #elif defined(CONFIG_HUGETLB_PAGE_SIZE_512K) | ||
1414 | #define _PAGE_SZHUGE_4U _PAGE_SZ512K_4U | ||
1415 | #define _PAGE_SZHUGE_4V _PAGE_SZ512K_4V | ||
1416 | #elif defined(CONFIG_HUGETLB_PAGE_SIZE_64K) | ||
1417 | #define _PAGE_SZHUGE_4U _PAGE_SZ64K_4U | ||
1418 | #define _PAGE_SZHUGE_4V _PAGE_SZ64K_4V | ||
1419 | #endif | ||
1420 | |||
1421 | #define _PAGE_CACHE_4U (_PAGE_CP_4U | _PAGE_CV_4U) | 1337 | #define _PAGE_CACHE_4U (_PAGE_CP_4U | _PAGE_CV_4U) |
1422 | #define _PAGE_CACHE_4V (_PAGE_CP_4V | _PAGE_CV_4V) | 1338 | #define _PAGE_CACHE_4V (_PAGE_CP_4V | _PAGE_CV_4V) |
1423 | #define __DIRTY_BITS_4U (_PAGE_MODIFIED_4U | _PAGE_WRITE_4U | _PAGE_W_4U) | 1339 | #define __DIRTY_BITS_4U (_PAGE_MODIFIED_4U | _PAGE_WRITE_4U | _PAGE_W_4U) |