summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/icu.h
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2006-12-17 05:07:01 +0000
committerkmacy <kmacy@FreeBSD.org>2006-12-17 05:07:01 +0000
commitee539b99dcacb73703a09f64d8ada227bb88a165 (patch)
tree1efe0da4c2d3a8dd001c384ae0b90857bc051940 /sys/i386/isa/icu.h
parent6795d7528dafe4542404d5c897996ab60825164e (diff)
downloadFreeBSD-src-ee539b99dcacb73703a09f64d8ada227bb88a165.zip
FreeBSD-src-ee539b99dcacb73703a09f64d8ada227bb88a165.tar.gz
Evidently FreeBSD has long relied on the compiler to treat structures
passed by value (trap frames) as if they were in fact being passed by reference. For better or worse, this incorrect behaviour is no longer present in gcc 4.1. In this patch I convert all trapframe arguments to be explicitly pass by reference. I also remove vm86_initflags, pushing the very little work that it actually does up into vm86_prepcall. Reviewed by: kan Tested by: kan
Diffstat (limited to 'sys/i386/isa/icu.h')
-rw-r--r--sys/i386/isa/icu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/icu.h b/sys/i386/isa/icu.h
index a74f183..bd9df08 100644
--- a/sys/i386/isa/icu.h
+++ b/sys/i386/isa/icu.h
@@ -47,7 +47,7 @@
#define ICU_IMR_OFFSET 1
#endif
-void atpic_handle_intr(u_int vector, struct trapframe frame);
+void atpic_handle_intr(u_int vector, struct trapframe *frame);
void atpic_startup(void);
#endif /* !_I386_ISA_ICU_H_ */
OpenPOWER on IntegriCloud