| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: vmparam.h,v 1.38 2012/12/10 16:12:19 chs Exp $ */ | | 1 | /* $NetBSD: vmparam.h,v 1.39 2020/08/29 20:08:08 thorpej Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1988 University of Utah. | | 4 | * Copyright (c) 1988 University of Utah. |
5 | * Copyright (c) 1992, 1993 | | 5 | * Copyright (c) 1992, 1993 |
6 | * The Regents of the University of California. All rights reserved. | | 6 | * The Regents of the University of California. All rights reserved. |
7 | * | | 7 | * |
8 | * This code is derived from software contributed to Berkeley by | | 8 | * This code is derived from software contributed to Berkeley by |
9 | * the Systems Programming Group of the University of Utah Computer | | 9 | * the Systems Programming Group of the University of Utah Computer |
10 | * Science Department and Ralph Campbell. | | 10 | * Science Department and Ralph Campbell. |
11 | * | | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | | 12 | * Redistribution and use in source and binary forms, with or without |
13 | * modification, are permitted provided that the following conditions | | 13 | * modification, are permitted provided that the following conditions |
14 | * are met: | | 14 | * are met: |
| @@ -48,26 +48,37 @@ | | | @@ -48,26 +48,37 @@ |
48 | /* | | 48 | /* |
49 | * Machine dependent constants for Alpha. | | 49 | * Machine dependent constants for Alpha. |
50 | */ | | 50 | */ |
51 | | | 51 | |
52 | /* | | 52 | /* |
53 | * All systypes currently supported by NetBSD/alpha have an 8K pages. | | 53 | * All systypes currently supported by NetBSD/alpha have an 8K pages. |
54 | * Override the PAGE_* definitions to be compile-time constants. | | 54 | * Override the PAGE_* definitions to be compile-time constants. |
55 | */ | | 55 | */ |
56 | #define PAGE_SHIFT 13 | | 56 | #define PAGE_SHIFT 13 |
57 | #define PAGE_SIZE (1 << PAGE_SHIFT) | | 57 | #define PAGE_SIZE (1 << PAGE_SHIFT) |
58 | #define PAGE_MASK (PAGE_SIZE - 1) | | 58 | #define PAGE_MASK (PAGE_SIZE - 1) |
59 | | | 59 | |
60 | /* | | 60 | /* |
| | | 61 | * Defaults for Unified Buffer Cache parameters. |
| | | 62 | */ |
| | | 63 | |
| | | 64 | #ifndef UBC_WINSHIFT |
| | | 65 | #define UBC_WINSHIFT 16 /* 64KB */ |
| | | 66 | #endif |
| | | 67 | #ifndef UBC_NWINS |
| | | 68 | #define UBC_NWINS 4096 /* for a total of 256MB */ |
| | | 69 | #endif |
| | | 70 | |
| | | 71 | /* |
61 | * USRSTACK is the top (end) of the user stack. | | 72 | * USRSTACK is the top (end) of the user stack. |
62 | * | | 73 | * |
63 | * Digital UNIX (formerly DEC OSF/1) places the stack below the | | 74 | * Digital UNIX (formerly DEC OSF/1) places the stack below the |
64 | * text segment (i.e. growing downward from 4G). We may want to | | 75 | * text segment (i.e. growing downward from 4G). We may want to |
65 | * consider doing that at some point, but it might require changes | | 76 | * consider doing that at some point, but it might require changes |
66 | * to the exec code. | | 77 | * to the exec code. |
67 | */ | | 78 | */ |
68 | #define USRSTACK ((vaddr_t)0x0000000200000000) /* 8G */ | | 79 | #define USRSTACK ((vaddr_t)0x0000000200000000) /* 8G */ |
69 | | | 80 | |
70 | /* | | 81 | /* |
71 | * Virtual memory related constants, all in bytes | | 82 | * Virtual memory related constants, all in bytes |
72 | */ | | 83 | */ |
73 | #ifndef MAXTSIZ | | 84 | #ifndef MAXTSIZ |