From 9c46bf53675374a7c626108bdc19fa91c7634af5 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 11 Mar 2002 21:39:18 +0000 Subject: [PATCH] Use pushad/popad rather than pusha/popa. Latter don't work properly on Windows, and former aren't implemented by GCC. --- v7/src/microcode/cmpauxmd/i386.m4 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/v7/src/microcode/cmpauxmd/i386.m4 b/v7/src/microcode/cmpauxmd/i386.m4 index 940f9c259..0786424fc 100644 --- a/v7/src/microcode/cmpauxmd/i386.m4 +++ b/v7/src/microcode/cmpauxmd/i386.m4 @@ -1,8 +1,8 @@ ### -*-Midas-*- ### -### $Id: i386.m4,v 1.56 2001/12/19 19:53:35 cph Exp $ +### $Id: i386.m4,v 1.57 2002/03/11 21:39:18 cph Exp $ ### -### Copyright (c) 1992-2001 Massachusetts Institute of Technology +### Copyright (c) 1992-2002 Massachusetts Institute of Technology ### ### This program is free software; you can redistribute it and/or ### modify it under the terms of the GNU General Public License as @@ -181,7 +181,9 @@ ifdef(`DASM', IFNDASM(` .file "cmpaux-i386.s"') -# GAS doesn't implement pushfd/popfd, for no obvious reason. +# GAS doesn't implement these, for no obvious reason. +IFNDASM(`define(pushad,`pusha')') +IFNDASM(`define(popad,`popa')') IFNDASM(`define(pushfd,`pushf')') IFNDASM(`define(popfd,`popf')') @@ -673,10 +675,10 @@ define_code_label(EFR(ia32_cache_synchronize)) ### Run the CPUID instruction for serialization. define_hook_label(serialize_cache) - pusha + pushad OP(xor,l) TW(REG(eax),REG(eax)) cpuid - popa + popad ret ### Stub to be used in place of above on machines that don't need it. -- 2.25.1