Skip to content

Commit

Permalink
pm: disable interrupt after exit from halt
Browse files Browse the repository at this point in the history
HSD: 15015857053

This commit is to disable core interrupt after exit from halt,
which is porting from ISH.
We need to keep interrupt disabled until all necessary hardware
context restoration is done.

Signed-off-by: Roger Wang <[email protected]>
  • Loading branch information
roger1wang-intel committed Aug 7, 2024
1 parent 974b9dc commit b18e5bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bsp_sedi/soc/intel_ish/pm/ish_pm.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Intel Corporation
* Copyright (c) 2023-2024 Intel Corporation
*
* SPDX-License-Identifier: BSD-3-Clause
*/
Expand Down Expand Up @@ -47,7 +47,10 @@ static inline void ish_mia_halt(void)
{
/* make sure interrupts are enabled before halting */
__asm__ volatile("sti;\n"
"hlt;");
"hlt;\n"
"nop;\n"
"nop;\n"
"cli;");
}

/* reset ISH mintue-ia cpu core */
Expand Down

0 comments on commit b18e5bb

Please sign in to comment.