Re: CVS commit: src/sys/arch/aarch64/aarch64

2020-10-06 Thread Nick Hudson



On 06/10/2020 01:54, Rin Okuyama wrote:

Hi,

On 2020/10/01 1:35, Nick Hudson wrote:

Module Name:    src
Committed By:    skrll
Date:    Wed Sep 30 16:35:49 UTC 2020

Modified Files:
src/sys/arch/aarch64/aarch64: cpuswitch.S vectors.S

Log Message:
Move el[01]_trap_exit into vectors.S where the callers exist


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/aarch64/aarch64/cpuswitch.S
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/aarch64/aarch64/vectors.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.


This commit seems to break COMPAT_NETBSD32. On RPI3, earmv7hf binaries
get SIGSEGV:


Hopefully fixed now with the commit below. Please let me know if you
have any other problems.

Sorry for the breakage.

Nick


Module Name:src
Committed By:   skrll
Date:   Tue Oct  6 06:26:46 UTC 2020

Modified Files:
src/sys/arch/aarch64/aarch64: cpuswitch.S vectors.S

Log Message:
move #include "opt_compat_netbsd32.h" to where it's required


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/aarch64/aarch64/cpuswitch.S
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/aarch64/aarch64/vectors.S




Re: CVS commit: src/sys/arch/aarch64/aarch64

2020-10-06 Thread Rin Okuyama

It works fine now. Thank you for quick fix!!

rin

On 2020/10/06 15:28, Nick Hudson wrote:


On 06/10/2020 01:54, Rin Okuyama wrote:

Hi,

On 2020/10/01 1:35, Nick Hudson wrote:

Module Name:    src
Committed By:    skrll
Date:    Wed Sep 30 16:35:49 UTC 2020

Modified Files:
src/sys/arch/aarch64/aarch64: cpuswitch.S vectors.S

Log Message:
Move el[01]_trap_exit into vectors.S where the callers exist


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/aarch64/aarch64/cpuswitch.S
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/aarch64/aarch64/vectors.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.


This commit seems to break COMPAT_NETBSD32. On RPI3, earmv7hf binaries
get SIGSEGV:


Hopefully fixed now with the commit below. Please let me know if you
have any other problems.

Sorry for the breakage.

Nick


Module Name:    src
Committed By:    skrll
Date:    Tue Oct  6 06:26:46 UTC 2020

Modified Files:
 src/sys/arch/aarch64/aarch64: cpuswitch.S vectors.S

Log Message:
move #include "opt_compat_netbsd32.h" to where it's required


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/aarch64/aarch64/cpuswitch.S
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/aarch64/aarch64/vectors.S




Re: CVS commit: src/sys/arch

2020-10-06 Thread Thomas Klausner
Thank you very much!
 Thomas

> On 06.10.2020, at 15:42, Christos Zoulas  wrote:
> 
> Module Name:  src
> Committed By: christos
> Date: Tue Oct  6 13:42:03 UTC 2020
> 
> Modified Files:
>   src/sys/arch/aarch64/include: vmparam.h
>   src/sys/arch/amd64/include: vmparam.h
>   src/sys/arch/mips/include: vmparam.h
>   src/sys/arch/riscv/include: vmparam.h
>   src/sys/arch/sparc64/include: vmparam.h
> 
> Log Message:
> GC unused MAXTSIZ32
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.15 -r1.16 src/sys/arch/aarch64/include/vmparam.h
> cvs rdiff -u -r1.52 -r1.53 src/sys/arch/amd64/include/vmparam.h
> cvs rdiff -u -r1.63 -r1.64 src/sys/arch/mips/include/vmparam.h
> cvs rdiff -u -r1.5 -r1.6 src/sys/arch/riscv/include/vmparam.h
> cvs rdiff -u -r1.40 -r1.41 src/sys/arch/sparc64/include/vmparam.h
> 
> 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/aarch64/include/vmparam.h
> diff -u src/sys/arch/aarch64/include/vmparam.h:1.15 
> src/sys/arch/aarch64/include/vmparam.h:1.16
> --- src/sys/arch/aarch64/include/vmparam.h:1.15   Wed Sep 23 01:02:27 2020
> +++ src/sys/arch/aarch64/include/vmparam.hTue Oct  6 09:42:03 2020
> @@ -1,4 +1,4 @@
> -/* $NetBSD: vmparam.h,v 1.15 2020/09/23 05:02:27 skrll Exp $ */
> +/* $NetBSD: vmparam.h,v 1.16 2020/10/06 13:42:03 christos Exp $ */
> 
> /*-
>  * Copyright (c) 2014 The NetBSD Foundation, Inc.
> @@ -103,10 +103,6 @@
> 
> #define USRSTACK32VM_MAXUSER_ADDRESS32
> 
> -#ifndef MAXTSIZ32
> -#define  MAXTSIZ32   (1L << 26)  /* 32bit max text size (64MB) */
> -#endif
> -
> #ifndef   MAXDSIZ32
> #define   MAXDSIZ32   (3U*1024*1024*1024) /* max data size */
> #endif
> 
> Index: src/sys/arch/amd64/include/vmparam.h
> diff -u src/sys/arch/amd64/include/vmparam.h:1.52 
> src/sys/arch/amd64/include/vmparam.h:1.53
> --- src/sys/arch/amd64/include/vmparam.h:1.52 Wed Jan 22 11:52:46 2020
> +++ src/sys/arch/amd64/include/vmparam.h  Tue Oct  6 09:42:03 2020
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: vmparam.h,v 1.52 2020/01/22 16:52:46 ad Exp $  */
> +/*   $NetBSD: vmparam.h,v 1.53 2020/10/06 13:42:03 christos Exp $*/
> 
> /*-
>  * Copyright (c) 1990 The Regents of the University of California.
> @@ -106,7 +106,6 @@
>  * 32bit memory related constants.
>  */
> 
> -#define MAXTSIZ32(256*1024*1024)
> #ifndef DFLDSIZ32
> #define   DFLDSIZ32   (256*1024*1024) /* initial data size 
> limit */
> #endif
> 
> Index: src/sys/arch/mips/include/vmparam.h
> diff -u src/sys/arch/mips/include/vmparam.h:1.63 
> src/sys/arch/mips/include/vmparam.h:1.64
> --- src/sys/arch/mips/include/vmparam.h:1.63  Sun Jul 26 04:08:41 2020
> +++ src/sys/arch/mips/include/vmparam.h   Tue Oct  6 09:42:03 2020
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: vmparam.h,v 1.63 2020/07/26 08:08:41 simonb Exp $  */
> +/*   $NetBSD: vmparam.h,v 1.64 2020/10/06 13:42:03 christos Exp $*/
> 
> /*
>  * Copyright (c) 1988 University of Utah.
> @@ -126,9 +126,6 @@
> /*
>  * Virtual memory related constants, all in bytes
>  */
> -#ifndef MAXTSIZ32
> -#define  MAXTSIZ32   MAXTSIZ /* max text size */
> -#endif
> #ifndef DFLDSIZ32
> #define   DFLDSIZ32   DFLDSIZ /* initial data size 
> limit */
> #endif
> 
> Index: src/sys/arch/riscv/include/vmparam.h
> diff -u src/sys/arch/riscv/include/vmparam.h:1.5 
> src/sys/arch/riscv/include/vmparam.h:1.6
> --- src/sys/arch/riscv/include/vmparam.h:1.5  Sat Jun  1 08:42:28 2019
> +++ src/sys/arch/riscv/include/vmparam.h  Tue Oct  6 09:42:03 2020
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: vmparam.h,v 1.5 2019/06/01 12:42:28 maxv Exp $ */
> +/*   $NetBSD: vmparam.h,v 1.6 2020/10/06 13:42:03 christos Exp $ */
> 
> /*-
>  * Copyright (c) 2014 The NetBSD Foundation, Inc.
> @@ -79,9 +79,6 @@
> /*
>  * Virtual memory related constants, all in bytes
>  */
> -#ifndef MAXTSIZ32
> -#define  MAXTSIZ32   MAXTSIZ /* max text size */
> -#endif
> #ifndef DFLDSIZ32
> #define   DFLDSIZ32   DFLDSIZ /* initial data size 
> limit */
> #endif
> 
> Index: src/sys/arch/sparc64/include/vmparam.h
> diff -u src/sys/arch/sparc64/include/vmparam.h:1.40 
> src/sys/arch/sparc64/include/vmparam.h:1.41
> --- src/sys/arch/sparc64/include/vmparam.h:1.40   Wed Jan 22 11:59:37 2020
> +++ src/sys/arch/sparc64/include/vmparam.hTue Oct  6 09:42:03 2020
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: vmparam.h,v 1.40 2020/01/22 16:59:37 ad Exp $ */
> +/*   $NetBSD: vmparam.h,v 1.41 2020/10/06 13:42:03 christos Exp $ */
> 
> /*
>  * Copyright (c) 1992, 1993
> @@ -155,9 +155,6 @@
> /*
>  * 32-bit emulation limits (same as sparc - we could go bigger)
>  */
> -#ifndef MAXTSIZ32
> -#define  MAXTSIZ32   (64*1024*1024)  /* max text size */
> -#endif
> #ifndef DFLDSIZ32
> #define   DFLDSIZ32   (64*1024*1024)  /* initial data