Skip to content

Conversation

@lonzoc
Copy link

@lonzoc lonzoc commented Feb 4, 2021

Signed-off-by: Cai Yulong [email protected]

vijaydhanraj and others added 21 commits February 3, 2021 10:19
As part of arch module cleanup, moving out seed
module as it has no dependency on arch.

Signed-off-by: Vijay Dhanraj <[email protected]>
Acked-by: Jason Chen <[email protected]>
Signed-off-by: Rong Liu <[email protected]>
1. do not allow external modules to touch internal field of a timer
2. hide timer mode into internal, period_in_cycles will decide the mode

Signed-off-by: Jason Chen CJ <[email protected]>
Signed-off-by: Peter Fang <[email protected]>
Reviewed-by: Jason Chen CJ <[email protected]>
Split irq.c into arch/x86/irq.c and common/irq.c

The arch-specific file provides arch-specific interfaces as well as
*_arch interfaces for the common irq framework.

Also, add irq_rsvd_bitmap to decouple irq number reservation from
ioapic.

Signed-off-by: Peter Fang <[email protected]>
Reviewed-by: Jason Chen CJ <[email protected]>
Move handle_nmi, dispatch_exception and init_interrupt_arch to seperated files

Signed-off-by: Yang, Yu-chu <[email protected]>
Restructure the init_interrupt in common/irq,c and init_interrupt_arch
in x86/irq.c. Split the functionality to two parts. One is for hardware
initilizatoin, another is for set up irq framework.

Signed-off-by: Yang, Yu-chu <[email protected]>
Move out the ioapic apis which are for irq ops

Signed-off-by: Yang, Yu-chu <[email protected]>
move set_irq_trigger_mode into ioapic_set_rte

Signed-off-by: Jason Chen CJ <[email protected]>
1. move cpufeatures.h into cpu_caps.h
2. make init_pcpu_model_name as internal function

Signed-off-by: Jason Chen CJ <[email protected]>
struct cpuinfo_x86 will be private structure for cpu_caps.
remove API get_pcpu_info(), and add APIs:
- uint8_t pcpu_family_id(void);
- uint8_t pcpu_model_id(void);
- char *pcpu_model_name(void);
- uint8_t pcpu_physaddr_bits(void);
- uint8_t pcpu_virtaddr_bits(void);
- uint32_t pcpu_cpuid_level(void);
- bool pcpu_set_cap(uint32_t bit);

Signed-off-by: Jason Chen CJ <[email protected]>
This reverts commit ef411d4.

TODO: we need add such fix logic back!!!!!
Split ptdev.c and assign.c into:

- common/ptintr.c
- common/ptirq.c
- arch/x86/ptintr.c
- arch/x86/ptirq.c

ptintr is responsible for interrupt remapping.
ptirq is responsible for irq/softirq handling.

Signed-off-by: Peter Fang <[email protected]>
Signed-off-by: Jason Chen CJ <[email protected]>
merge ioapic_irq.c into ioapic.c

Signed-off-by: Jason Chen CJ <[email protected]>
Signed-off-by: Jason Chen CJ <[email protected]>
Signed-off-by: Jason Chen CJ <[email protected]>
Let DM own COM1

Signed-off-by: Jason Chen CJ <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants