Skip to content
Snippets Groups Projects
Commit b1436404 authored by gback's avatar gback
Browse files

fixed ODR violations to compile with gcc 11.4.1

parent d02f0e4e
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,8 @@
set to the default. */
static volatile struct ioapic *ioapic;
uint8_t ioapic_id;
/* IO APIC MMIO structure: write reg, then read or write data. */
struct ioapic
{
......
......@@ -3,7 +3,7 @@
#include <stdint.h>
uint8_t ioapic_id;
extern uint8_t ioapic_id;
void ioapic_init (void);
void ioapic_enable (int irq, int cpu);
......
......@@ -88,6 +88,8 @@ static void microdelay (int);
static void lapicw (int , int);
static void sendipi (uint8_t , int);
volatile uint32_t *lapic_base_addr;
/* Initialize the local advanced interrupt controller. */
void
lapic_init (void)
......
......@@ -10,7 +10,7 @@
lapic_base_addr stores the base address for the
local APIC.
This is initialized in mp.c, by parsing the MP Configuration Table */
volatile uint32_t *lapic_base_addr;
extern volatile uint32_t *lapic_base_addr;
#define T_IPI 0xFB
#define NUM_IPI 5
......
......@@ -9,7 +9,7 @@
#define ROOT_DIR_SECTOR 1 /* Root directory file inode sector. */
/* Block device that contains the file system. */
struct block *fs_device;
extern struct block *fs_device;
void filesys_init (bool format);
void filesys_done (void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment