From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6DB10385842F; Thu, 11 Jan 2024 02:19:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DB10385842F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704939566; bh=C02AEy9JuR2aCzo4z4MNxTDnCQxWrsxHATTVKeCfx4w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FuRj9ghADpdhoqCO2ZwIpaNuYsrTxMEdEd4MPAxv7oKLNHaWBN9Qy+CFVirPUxSp7 6XdiHxSy0Komztdbc8ISu5H7H+1ImOPRb70hU6otD04wnnU2PC7exo2thK1legW0EI wCkCBq6oscObmpRmqkPBGDpu1C+qtosNF+1TNJ04= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113312] Update __attribute__((interrupt)) for Intel FRED Date: Thu, 11 Jan 2024 02:19:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113312 --- Comment #5 from H.J. Lu --- (In reply to H. Peter Anvin from comment #3) > Created attachment 57032 [details] > FRED assembly entry stub (example, slightly modified from the Linux kerne= l) Can you do asm_fred_entry_\type: endbr64 push %rdi push %rsi push %rdx push %rax push %r8 push %r9 push %r10 push %r11 push %rbx push %rbp push %r12 push %r13 push %r14 push %r15 lea 15*8(%rsp),%rdi <<<<<< RDI will point to the event info aft= er CALL. call fred_entry_\type /* call C code */ endbr64 pop %r15 pop %r14 pop %r13 pop %r12 pop %rbp pop %rbx pop %r11 pop %r10 pop %r9 pop %r8 pop %rax pop %rdx pop %rsi pop %rdi \eret=