Module Name: src Committed By: thorpej Date: Mon Jan 15 03:14:31 UTC 2024
Modified Files: src/sys/arch/atari/atari: atari_init.c Log Message: Guard references to protorp with M68030. To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/sys/arch/atari/atari/atari_init.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/atari/atari/atari_init.c diff -u src/sys/arch/atari/atari/atari_init.c:1.110 src/sys/arch/atari/atari/atari_init.c:1.111 --- src/sys/arch/atari/atari/atari_init.c:1.110 Tue Jan 9 07:28:25 2024 +++ src/sys/arch/atari/atari/atari_init.c Mon Jan 15 03:14:31 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: atari_init.c,v 1.110 2024/01/09 07:28:25 thorpej Exp $ */ +/* $NetBSD: atari_init.c,v 1.111 2024/01/15 03:14:31 thorpej Exp $ */ /* * Copyright (c) 1995 Leo Weppelman @@ -33,7 +33,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: atari_init.c,v 1.110 2024/01/09 07:28:25 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: atari_init.c,v 1.111 2024/01/15 03:14:31 thorpej Exp $"); #include "opt_ddb.h" #include "opt_mbtype.h" @@ -211,7 +211,7 @@ start_c(int id, u_int ttphystart, u_int psize_t ptsize; u_int ptextra; vaddr_t kva; - u_int tc, i; + u_int i; pt_entry_t *pg, *epg; pt_entry_t pg_proto; vaddr_t end_loaded; @@ -601,7 +601,6 @@ start_c(int id, u_int ttphystart, u_int * Prepare to enable the MMU. * Setup and load SRP (see pmap.h) */ - protorp[1] = Sysseg_pa; /* + segtable address */ cpu_init_kcorehdr(kbase, Sysseg_pa); @@ -642,15 +641,18 @@ start_c(int id, u_int ttphystart, u_int } else #endif { +#if defined(M68030) + protorp[1] = Sysseg_pa; /* + segtable address */ __asm volatile ("pmove %0@,%%srp" : : "a" (&protorp[0])); /* * setup and load TC register. * enable_cpr, enable_srp, pagesize=8k, * A = 8 bits, B = 11 bits */ - tc = MMU51_TCR_BITS; + u_int tc = MMU51_TCR_BITS; __asm volatile ("pflusha" : : ); __asm volatile ("pmove %0@,%%tc" : : "a" (&tc)); +#endif /* M68030 */ } /*