summaryrefslogtreecommitdiff
path: root/kernel/apic.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-04 00:53:30 +0200
committerMiguel <m.i@gmx.at>2018-10-04 00:53:30 +0200
commitce16fe524c14ccaae67fb634105da5aef08ead48 (patch)
tree03990f29389bd4c55f40b804b809c7060c24c739 /kernel/apic.c
parenta455cd5af26bf8731e7c981a9421b16ab34dae6f (diff)
moving framebuffer access completely to userspace
Diffstat (limited to 'kernel/apic.c')
-rw-r--r--kernel/apic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/apic.c b/kernel/apic.c
index 75837f7..509fd3b 100644
--- a/kernel/apic.c
+++ b/kernel/apic.c
@@ -71,6 +71,7 @@ static uint32_t apic_read(uint32_t offset)
uint32_t apic_id()
{
+ if(local_apic_addr==0)return 0;
return apic_read(APIC_APICID)>>24;
}