From 4897e6c0859f4ee2dfab905b28ff6b478b449646 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 22 Mar 2008 15:11:01 +0000 Subject: [PATCH] bring some stuff from time_t=64... - add sysalign parameter to syscalls.conf - add compat_50 --- sys/kern/makesyscalls.sh | 6 ++++-- sys/kern/syscalls.conf | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 5ef5e7cbb272..2c5a5893fb1b 100644 --- a/sys/kern/makesyscalls.sh +++ b/sys/kern/makesyscalls.sh @@ -1,5 +1,5 @@ #! /bin/sh - -# $NetBSD: makesyscalls.sh,v 1.67 2008/03/18 12:36:15 njoly Exp $ +# $NetBSD: makesyscalls.sh,v 1.68 2008/03/22 15:11:01 christos Exp $ # # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou # All rights reserved. @@ -42,6 +42,7 @@ case $# in esac # the config file sets the following variables: +# sysalign check for alignment of off_t # sysnames the syscall names file # sysnumhdr the syscall numbers file # syssw the syscall switch file @@ -132,6 +133,7 @@ BEGIN { namesname = \"$namesname\" constprefix = \"$constprefix\" registertype = \"$registertype\" + sysalign=\"$sysalign\" if (!registertype) { registertype = \"register_t\" } @@ -425,7 +427,7 @@ function parseline() { if (argtype[argc] == "") parserr($f, "argument definition") if (argtype[argc] == "off_t") { - if ((argalign % 2) != 0 && + if ((argalign % 2) != 0 && sysalign && funcname != "sys_posix_fadvise") # XXX for now parserr($f, "a padding argument") } else { diff --git a/sys/kern/syscalls.conf b/sys/kern/syscalls.conf index d622049ea1f8..52094714a104 100644 --- a/sys/kern/syscalls.conf +++ b/sys/kern/syscalls.conf @@ -1,12 +1,13 @@ -# $NetBSD: syscalls.conf,v 1.12 2008/03/11 22:51:51 pooka Exp $ +# $NetBSD: syscalls.conf,v 1.13 2008/03/22 15:11:01 christos Exp $ sysnames="syscalls.c" sysnumhdr="../sys/syscall.h" syssw="init_sysent.c" sysarghdr="../sys/syscallargs.h" +sysalign=1 rumpcalls="../rump/librump/rumpkern/rump_syscalls.c" rumpcallshdr="../rump/librump/rumpkern/rump_syscalls.h" -compatopts="compat_43 compat_09 compat_10 compat_11 compat_12 compat_13 compat_14 compat_15 compat_16 compat_20 compat_30 compat_40" +compatopts="compat_43 compat_09 compat_10 compat_11 compat_12 compat_13 compat_14 compat_15 compat_16 compat_20 compat_30 compat_40 compat_50" libcompatopts="" switchname="sysent"