Changeset 146 for trunk/hal/x86_64/core


Ignore:
Timestamp:
Jul 5, 2017, 11:08:42 AM (7 years ago)
Author:
max@…
Message:

remove my fake_apic shit from yesterday

Location:
trunk/hal/x86_64/core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_apic.h

    r138 r146  
    2727void hal_apic_init();
    2828#endif
    29 
    30 /*
    31  *******************************************************************************
    32  * Fake APIC status, used by XCU (soft)
    33  *******************************************************************************
    34  */
    35 #define APIC_FAKE_STATUS_HWI    0x1000
    36 #define APIC_FAKE_STATUS_WTI    0x2000
    37 #define APIC_FAKE_STATUS_PTI    0x4000
    3829
    3930/*
  • trunk/hal/x86_64/core/hal_kentry.S

    r145 r146  
    166166        INTR_SAVE_REGS          ;       \
    167167                                ;       \
    168         movq    $(APIC_FAKE_STATUS_WTI|n),CPUVAR(APIC_FAKE_STATUS);     \
    169168        call    hal_do_interrupt;       \
    170169                                ;       \
     
    179178        INTR_SAVE_REGS          ;       \
    180179                                ;       \
    181         movq    $(APIC_FAKE_STATUS_HWI|n),CPUVAR(APIC_FAKE_STATUS);     \
    182180        call    hal_do_interrupt;       \
    183181                                ;       \
     
    192190        INTR_SAVE_REGS          ;       \
    193191                                ;       \
    194         movq    $(APIC_FAKE_STATUS_PTI|n),CPUVAR(APIC_FAKE_STATUS);     \
    195192        call    hal_do_interrupt;       \
    196193                                ;       \
  • trunk/hal/x86_64/core/hal_kentry.h

    r145 r146  
    4545#define T_USER  0x100
    4646
    47 #define CPU_INFO_APIC_FAKE_STATUS       8
    4847#define CPUVAR(off)     %gs:CPU_INFO_ ## off
    4948
  • trunk/hal/x86_64/core/hal_special.c

    r138 r146  
    3333struct cpu_info {
    3434        void *ci_self;
    35         uint64_t apic_fake_status;
    3635        uint32_t ci_gid;
    3736        uint32_t ci_lid;
     
    108107}
    109108
    110 uint8_t hal_get_apic_fake_status()
    111 {
    112         return curcpu()->apic_fake_status;
    113 }
    114 
    115109/* -------------------------------------------------------------------------- */
    116110
Note: See TracChangeset for help on using the changeset viewer.