1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

reduce the number of obsolete kernel messages

This commit is contained in:
Stefan Lankes 2017-09-23 10:25:23 +02:00
parent 7dcb0dad3a
commit 838fd7748f
2 changed files with 5 additions and 3 deletions

View file

@ -44,6 +44,8 @@ extern "C" {
#define APIC_TPR 0x0080
/// EOI Register
#define APIC_EOI 0x00B0
/// Required for future compatiblity
#define APIC_EOI_ACK 0x0000
/// Spurious Interrupt Vector Register
#define APIC_SVR 0x00F0
/// Error Status Register

View file

@ -248,7 +248,7 @@ void apic_eoi(size_t int_no)
* then we use the APIC
*/
if (apic_is_enabled() || int_no >= 48) {
lapic_write(APIC_EOI, 0);
lapic_write(APIC_EOI, APIC_EOI_ACK);
} else {
/*
* If the IDT entry that was invoked was greater-than-or-equal to 40
@ -1001,7 +1001,7 @@ int ipi_tlb_flush(void)
static void apic_tlb_handler(struct state *s)
{
LOG_INFO("Receive IPI at core %d to flush the TLB\n", CORE_ID);
LOG_DEBUG("Receive IPI at core %d to flush the TLB\n", CORE_ID);
write_cr3(read_cr3());
}
#endif
@ -1108,7 +1108,7 @@ static void apic_shutdown(struct state* s)
static void apic_wakeup(struct state* s)
{
LOG_INFO("Receive wakeup interrupt\n");
LOG_DEBUG("Receive wakeup interrupt\n");
}
int apic_init(void)