From dc4de4ca23abfc5744e5a7ec633bf32a376eba54 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 15 Nov 1994 14:09:18 +0000 Subject: [PATCH] Fix type mismatches exposed by a recently added prototype. --- sys/i386/apm/apm.c | 8 ++++---- sys/i386/bios/apm.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c index a0f6bdf06589..d419da442b9a 100644 --- a/sys/i386/apm/apm.c +++ b/sys/i386/apm/apm.c @@ -13,7 +13,7 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.5 1994/10/02 17:40:38 phk Exp $ + * $Id: apm.c,v 1.6 1994/11/07 04:23:58 phk Exp $ */ #include "apm.h" @@ -72,9 +72,9 @@ setup_apm_gdt(u_int code32_base, u_int code16_base, u_int data_base, u_int code_ gdt_segs[GAPMDATA_SEL ].ssd_limit = data_limit; /* reflect these changes on physical GDT */ - ssdtosd(gdt_segs + GAPMCODE32_SEL, gdt + GAPMCODE32_SEL); - ssdtosd(gdt_segs + GAPMCODE16_SEL, gdt + GAPMCODE16_SEL); - ssdtosd(gdt_segs + GAPMDATA_SEL , gdt + GAPMDATA_SEL ); + ssdtosd(gdt_segs + GAPMCODE32_SEL, &gdt[GAPMCODE32_SEL].sd); + ssdtosd(gdt_segs + GAPMCODE16_SEL, &gdt[GAPMCODE16_SEL].sd); + ssdtosd(gdt_segs + GAPMDATA_SEL , &gdt[GAPMDATA_SEL ].sd); } /* 48bit far pointer */ diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index a0f6bdf06589..d419da442b9a 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -13,7 +13,7 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.5 1994/10/02 17:40:38 phk Exp $ + * $Id: apm.c,v 1.6 1994/11/07 04:23:58 phk Exp $ */ #include "apm.h" @@ -72,9 +72,9 @@ setup_apm_gdt(u_int code32_base, u_int code16_base, u_int data_base, u_int code_ gdt_segs[GAPMDATA_SEL ].ssd_limit = data_limit; /* reflect these changes on physical GDT */ - ssdtosd(gdt_segs + GAPMCODE32_SEL, gdt + GAPMCODE32_SEL); - ssdtosd(gdt_segs + GAPMCODE16_SEL, gdt + GAPMCODE16_SEL); - ssdtosd(gdt_segs + GAPMDATA_SEL , gdt + GAPMDATA_SEL ); + ssdtosd(gdt_segs + GAPMCODE32_SEL, &gdt[GAPMCODE32_SEL].sd); + ssdtosd(gdt_segs + GAPMCODE16_SEL, &gdt[GAPMCODE16_SEL].sd); + ssdtosd(gdt_segs + GAPMDATA_SEL , &gdt[GAPMDATA_SEL ].sd); } /* 48bit far pointer */