cpu_machdep.c (53624) | cpu_machdep.c (53648) |
---|---|
1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 | 1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 |
38 * $FreeBSD: head/sys/i386/i386/machdep.c 53624 1999-11-23 04:09:13Z green $ | 38 * $FreeBSD: head/sys/i386/i386/machdep.c 53648 1999-11-24 01:03:08Z archie $ |
39 */ 40 41#include "apm.h" 42#include "ether.h" 43#include "npx.h" 44#include "opt_atalk.h" 45#include "opt_compat.h" 46#include "opt_cpu.h" --- 1538 unchanged lines hidden (view full) --- 1585#endif 1586 1587 /* 1588 * hw.maxmem is a size in bytes; we also allow k, m, and g suffixes 1589 * for the appropriate modifiers. This overrides MAXMEM. 1590 */ 1591 if ((cp = getenv("hw.physmem")) != NULL) { 1592 u_int64_t AllowMem, sanity; | 39 */ 40 41#include "apm.h" 42#include "ether.h" 43#include "npx.h" 44#include "opt_atalk.h" 45#include "opt_compat.h" 46#include "opt_cpu.h" --- 1538 unchanged lines hidden (view full) --- 1585#endif 1586 1587 /* 1588 * hw.maxmem is a size in bytes; we also allow k, m, and g suffixes 1589 * for the appropriate modifiers. This overrides MAXMEM. 1590 */ 1591 if ((cp = getenv("hw.physmem")) != NULL) { 1592 u_int64_t AllowMem, sanity; |
1593 const char *ep; | 1593 char *ep; |
1594 1595 sanity = AllowMem = strtouq(cp, &ep, 0); 1596 if ((ep != cp) && (*ep != 0)) { 1597 switch(*ep) { 1598 case 'g': 1599 case 'G': 1600 AllowMem <<= 10; 1601 case 'm': --- 757 unchanged lines hidden --- | 1594 1595 sanity = AllowMem = strtouq(cp, &ep, 0); 1596 if ((ep != cp) && (*ep != 0)) { 1597 switch(*ep) { 1598 case 'g': 1599 case 'G': 1600 AllowMem <<= 10; 1601 case 'm': --- 757 unchanged lines hidden --- |