diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-12-13 06:41:44 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-12-13 06:41:44 +0000 |
commit | 7f51edd5ae340b5cba89a89bfd852f0e86eb407c (patch) | |
tree | fd19486e044fa4f37711eb2a35ab6f3afad3982d | |
parent | 8fb3ad519bd515a358bb8bfc775495e23c683915 (diff) |
PDC_ALIGNMENT; remove global chasdata
-rw-r--r-- | sys/arch/hppa/stand/libsa/pdc.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/hppa/stand/libsa/pdc.c b/sys/arch/hppa/stand/libsa/pdc.c index c655f617ca8..8794fc56849 100644 --- a/sys/arch/hppa/stand/libsa/pdc.c +++ b/sys/arch/hppa/stand/libsa/pdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pdc.c,v 1.4 1998/10/30 19:40:22 mickey Exp $ */ +/* $OpenBSD: pdc.c,v 1.5 1998/12/13 06:41:43 mickey Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -81,13 +81,11 @@ */ pdcio_t pdc; -int pdcbuf[64] /* PDC return buffer */ - __attribute ((aligned(8))); +int pdcbuf[64] PDC_ALIGNMENT;/* PDC return buffer */ struct stable_storage sstor; /* contents of Stable Storage */ int sstorsiz; /* size of Stable Storage */ struct bootdata bd; int bdsize = sizeof(struct bootdata); -u_int chasdata; /* * Initialize PDC and related variables. @@ -120,8 +118,8 @@ pdc_init() /* * Clear the FAULT light (so we know when we get a real one) */ - chasdata = PDC_OSTAT(PDC_OSTAT_BOOT) | 0xCEC0; - (void) (*pdc)(PDC_CHASSIS, PDC_CHASSIS_DISP, chasdata); + (void) (*pdc)(PDC_CHASSIS, PDC_CHASSIS_DISP, + PDC_OSTAT(PDC_OSTAT_BOOT) | 0xCEC0); } /* |