Skip to content

Commit 3f5f981

Browse files
lyakhkartben
authored andcommitted
soc: intel_adsp: fix debug window number
Fixes: commit 5f4b51f ("soc: intel_adsp: add a debug window slot descriptor") - restore the maximum debug slot number. The added slot resides in page 0, not at the end of the array. The bug didn't have any run-time implications - no access to those high index value slots is performed, all platforms so far have 3 slots at most, so this is a pure correctness fix. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 4871217 commit 3f5f981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/intel/intel_adsp/common/include/adsp_debug_window.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct adsp_dw_desc {
7474
struct adsp_debug_window {
7575
struct adsp_dw_desc descs[ADSP_DW_DESC_COUNT];
7676
uint8_t reserved[ADSP_DW_SLOT_SIZE - ADSP_DW_DESC_COUNT * sizeof(struct adsp_dw_desc)];
77-
uint8_t slots[ADSP_DW_DESC_COUNT][ADSP_DW_SLOT_SIZE];
77+
uint8_t slots[ADSP_DW_SLOT_COUNT][ADSP_DW_SLOT_SIZE];
7878
} __packed;
7979

8080
#define WIN2_MBASE DT_REG_ADDR(DT_PHANDLE(DT_NODELABEL(mem_window2), memory))

0 commit comments

Comments
 (0)