File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
#include <zephyr/kernel.h>
7
7
#include <zephyr/pm/pm.h>
8
8
#include <zephyr/device.h>
9
+ #include <zephyr/debug/sparse.h>
9
10
#include <cpu_init.h>
10
11
11
12
#include <xtensa/corebits.h>
@@ -197,7 +198,8 @@ __imr void pm_state_imr_restore(void)
197
198
{
198
199
struct imr_layout * imr_layout = (struct imr_layout * )(IMR_LAYOUT_ADDRESS );
199
200
/* restore lpsram power and contents */
200
- bmemcpy (z_soc_uncached_ptr (UINT_TO_POINTER (LP_SRAM_BASE )),
201
+ bmemcpy (z_soc_uncached_ptr ((__sparse_force void __sparse_cache * )
202
+ UINT_TO_POINTER (LP_SRAM_BASE )),
201
203
imr_layout -> imr_state .header .imr_ram_storage ,
202
204
LP_SRAM_SIZE );
203
205
Original file line number Diff line number Diff line change 5
5
#define _ZEPHYR_SOC_INTEL_ADSP_DEBUG_WINDOW
6
6
7
7
#include <mem_window.h>
8
+ #include <zephyr/debug/sparse.h>
8
9
9
10
/*
10
11
* SRAM window for debug info (window 2) is organized in slots,
@@ -63,11 +64,10 @@ struct adsp_debug_window {
63
64
uint8_t slots [ADSP_DW_SLOT_COUNT ][ADSP_DW_SLOT_SIZE ];
64
65
} __packed ;
65
66
66
-
67
-
68
67
#define WIN2_MBASE DT_REG_ADDR(DT_PHANDLE(DT_NODELABEL(mem_window2), memory))
69
68
70
69
#define ADSP_DW ((volatile struct adsp_debug_window *) \
71
- (z_soc_uncached_ptr((void *)(WIN2_MBASE + WIN2_OFFSET))))
70
+ (z_soc_uncached_ptr((__sparse_force void __sparse_cache *) \
71
+ (WIN2_MBASE + WIN2_OFFSET))))
72
72
73
73
#endif
You can’t perform that action at this time.
0 commit comments