summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/StackCheckLib/IA32/StackCookieInterrupt.nasm
blob: 83a686ddb309101396c8693ec6b6b7ced644f235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;------------------------------------------------------------------------------
; IA32/StackCookieInterrupt.nasm
;
; Copyright (c) Microsoft Corporation.
; SPDX-License-Identifier: BSD-2-Clause-Patent
;------------------------------------------------------------------------------

    DEFAULT REL
    SECTION .text

;------------------------------------------------------------------------------
; Checks the stack cookie value against __security_cookie and calls the
; stack cookie failure handler if there is a mismatch.
;
; VOID
; TriggerStackCookieInterrupt (
;   VOID
;   );
;------------------------------------------------------------------------------
global ASM_PFX(TriggerStackCookieInterrupt)
ASM_PFX(TriggerStackCookieInterrupt):
    int     FixedPcdGet8 (PcdStackCookieExceptionVector)
    ret