Repository navigation
zephyr: remove unused interrupt and debug linkage stubs #11573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
lgirdwood
wants to merge
1
commit into
thesofproject:main
Choose a base branch
from
lgirdwood:topic/zn-rtos-irq-stubs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,14 +51,8 @@ DECLARE_TR_CTX(zephyr_tr, SOF_UUID(zephyr_uuid), LOG_LEVEL_INFO); | |
|
|
||
| /* | ||
| * Interrupts. | ||
| * | ||
| * Mostly mapped. Still needs some linkage symbols that can be removed later. | ||
| */ | ||
|
|
||
| /* needed for linkage only */ | ||
| const char irq_name_level2[] = "level2"; | ||
| const char irq_name_level5[] = "level5"; | ||
|
|
||
| /* AMD platforms without native drivers use the legacy SOF interrupt API */ | ||
| #if defined(CONFIG_AMD) && !defined(CONFIG_ZEPHYR_NATIVE_DRIVERS) | ||
| int interrupt_register(uint32_t irq, void(*handler)(void *arg), void *arg) | ||
|
|
@@ -118,16 +112,6 @@ void interrupt_unmask(uint32_t irq, unsigned int cpu) | |
| } | ||
| #endif | ||
|
|
||
| void platform_interrupt_set(uint32_t irq) | ||
| { | ||
| /* handled by zephyr - needed for linkage */ | ||
| } | ||
|
|
||
| void platform_interrupt_clear(uint32_t irq, uint32_t mask) | ||
| { | ||
| /* handled by zephyr - needed for linkage */ | ||
| } | ||
|
|
||
| /* | ||
| * Asynchronous Messaging Service | ||
| * | ||
|
|
@@ -156,23 +140,19 @@ struct notify **arch_notify_get(void) | |
| return host_notify + cpu_get_id(); | ||
| } | ||
|
|
||
| #if defined(CONFIG_AMD) && !defined(CONFIG_ZEPHYR_NATIVE_DRIVERS) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Zephyr tooling should be used here, will check that this change compiles with Zephyr, if so we could also remove the old sof script too. |
||
| /* | ||
| * Debug | ||
| */ | ||
| void arch_dump_regs_a(void *dump_buf) | ||
| { | ||
| /* needed for linkage only */ | ||
| } | ||
|
|
||
| /* | ||
| * Xtensa. TODO: this needs removed and fixed in SOF. | ||
| * Xtensa. Used by arch_interrupt_disable_mask() in the legacy interrupt | ||
| * code of the AMD platforms without native drivers. | ||
| * TODO: remove with the legacy interrupt code. | ||
| */ | ||
| unsigned int _xtos_ints_off(unsigned int mask) | ||
| { | ||
| /* turn all local IRQs OFF */ | ||
| irq_lock(); | ||
| return 0; | ||
| } | ||
| #endif | ||
|
|
||
| int task_main_start(struct sof *sof) | ||
| { | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All non native zephyr code is getting removed, platforms have to transition to native zephyr.