From 7f0ca2b0b80e9064b5d540ce2a41d7979d0135d5 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 8 Feb 2002 19:16:47 +0000 Subject: [PATCH] Apparently during the KSE M2 commit bzero() on the i386 was changed so that it's first parameter was volatile. Catch i486_bzero() and i586_bzero()'s prototypes up to this to quiet warnings. --- sys/amd64/include/md_var.h | 4 ++-- sys/i386/include/md_var.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h index ab47a94bd11a..091dfd1b5b02 100644 --- a/sys/amd64/include/md_var.h +++ b/sys/amd64/include/md_var.h @@ -80,9 +80,9 @@ void doreti_popl_es_fault __P((void)) __asm(__STRING(doreti_popl_es_fault)); void doreti_popl_fs __P((void)) __asm(__STRING(doreti_popl_fs)); void doreti_popl_fs_fault __P((void)) __asm(__STRING(doreti_popl_fs_fault)); void fillw __P((int /*u_short*/ pat, void *base, size_t cnt)); -void i486_bzero __P((void *buf, size_t len)); +void i486_bzero __P((volatile void *buf, size_t len)); void i586_bcopy __P((const void *from, void *to, size_t len)); -void i586_bzero __P((void *buf, size_t len)); +void i586_bzero __P((volatile void *buf, size_t len)); int i586_copyin __P((const void *udaddr, void *kaddr, size_t len)); int i586_copyout __P((const void *kaddr, void *udaddr, size_t len)); void i686_pagezero __P((void *addr)); diff --git a/sys/i386/include/md_var.h b/sys/i386/include/md_var.h index ab47a94bd11a..091dfd1b5b02 100644 --- a/sys/i386/include/md_var.h +++ b/sys/i386/include/md_var.h @@ -80,9 +80,9 @@ void doreti_popl_es_fault __P((void)) __asm(__STRING(doreti_popl_es_fault)); void doreti_popl_fs __P((void)) __asm(__STRING(doreti_popl_fs)); void doreti_popl_fs_fault __P((void)) __asm(__STRING(doreti_popl_fs_fault)); void fillw __P((int /*u_short*/ pat, void *base, size_t cnt)); -void i486_bzero __P((void *buf, size_t len)); +void i486_bzero __P((volatile void *buf, size_t len)); void i586_bcopy __P((const void *from, void *to, size_t len)); -void i586_bzero __P((void *buf, size_t len)); +void i586_bzero __P((volatile void *buf, size_t len)); int i586_copyin __P((const void *udaddr, void *kaddr, size_t len)); int i586_copyout __P((const void *kaddr, void *udaddr, size_t len)); void i686_pagezero __P((void *addr));