kernel/arch/arm: fix build - comment out fdt stuff as it's completely broken now
Change-Id: I8c0c5da0a915969176afea9e0e2cc2f831a18d59 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4619 Reviewed-by: Alex von Gluck IV <[email protected]> Reviewed-by: Adrien Destugues <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
d37e23576c
commit
d5bac4fd07
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2012, Haiku Inc. All rights reserved.
|
* Copyright 2003-2021, Haiku Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -54,7 +54,7 @@ static area_id sVectorPageArea;
|
|||||||
static void *sVectorPageAddress;
|
static void *sVectorPageAddress;
|
||||||
static area_id sUserVectorPageArea;
|
static area_id sUserVectorPageArea;
|
||||||
static void *sUserVectorPageAddress;
|
static void *sUserVectorPageAddress;
|
||||||
static fdt_module_info *sFdtModule;
|
//static fdt_module_info *sFdtModule;
|
||||||
|
|
||||||
// An iframe stack used in the early boot process when we don't have
|
// An iframe stack used in the early boot process when we don't have
|
||||||
// threads yet.
|
// threads yet.
|
||||||
@@ -116,6 +116,7 @@ arch_int_init(kernel_args *args)
|
|||||||
extern "C" void arm_vector_init(void);
|
extern "C" void arm_vector_init(void);
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
static struct fdt_device_info intc_table[] = {
|
static struct fdt_device_info intc_table[] = {
|
||||||
{
|
{
|
||||||
.compatible = "marvell,pxa-intc",
|
.compatible = "marvell,pxa-intc",
|
||||||
@@ -126,6 +127,7 @@ static struct fdt_device_info intc_table[] = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
static int intc_count = sizeof(intc_table) / sizeof(struct fdt_device_info);
|
static int intc_count = sizeof(intc_table) / sizeof(struct fdt_device_info);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
@@ -165,6 +167,7 @@ arch_int_init_post_vm(kernel_args *args)
|
|||||||
dprintf("Enabled high vectors\n");
|
dprintf("Enabled high vectors\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
status_t rc = get_module(B_FDT_MODULE_NAME, (module_info**)&sFdtModule);
|
status_t rc = get_module(B_FDT_MODULE_NAME, (module_info**)&sFdtModule);
|
||||||
if (rc != B_OK)
|
if (rc != B_OK)
|
||||||
panic("Unable to get FDT module: %08lx!\n", rc);
|
panic("Unable to get FDT module: %08lx!\n", rc);
|
||||||
@@ -172,6 +175,7 @@ arch_int_init_post_vm(kernel_args *args)
|
|||||||
rc = sFdtModule->setup_devices(intc_table, intc_count, NULL);
|
rc = sFdtModule->setup_devices(intc_table, intc_count, NULL);
|
||||||
if (rc != B_OK)
|
if (rc != B_OK)
|
||||||
panic("No interrupt controllers found!\n");
|
panic("No interrupt controllers found!\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2012, Haiku Inc. All rights reserved.
|
* Copyright 2007-2021, Haiku Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -32,8 +32,9 @@
|
|||||||
# define TRACE(x) ;
|
# define TRACE(x) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static fdt_module_info *sFdtModule;
|
//static fdt_module_info *sFdtModule;
|
||||||
|
|
||||||
|
#if 0
|
||||||
static struct fdt_device_info intc_table[] = {
|
static struct fdt_device_info intc_table[] = {
|
||||||
{
|
{
|
||||||
.compatible = "marvell,pxa-timers", // XXX not in FDT (also not in upstream!)
|
.compatible = "marvell,pxa-timers", // XXX not in FDT (also not in upstream!)
|
||||||
@@ -44,6 +45,7 @@ static struct fdt_device_info intc_table[] = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
static int intc_count = sizeof(intc_table) / sizeof(struct fdt_device_info);
|
static int intc_count = sizeof(intc_table) / sizeof(struct fdt_device_info);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -68,6 +70,7 @@ arch_init_timer(kernel_args *args)
|
|||||||
{
|
{
|
||||||
TRACE(("%s\n", __func__));
|
TRACE(("%s\n", __func__));
|
||||||
|
|
||||||
|
#if 0
|
||||||
status_t rc = get_module(B_FDT_MODULE_NAME, (module_info**)&sFdtModule);
|
status_t rc = get_module(B_FDT_MODULE_NAME, (module_info**)&sFdtModule);
|
||||||
if (rc != B_OK)
|
if (rc != B_OK)
|
||||||
panic("Unable to get FDT module: %08lx!\n", rc);
|
panic("Unable to get FDT module: %08lx!\n", rc);
|
||||||
@@ -75,6 +78,7 @@ arch_init_timer(kernel_args *args)
|
|||||||
rc = sFdtModule->setup_devices(intc_table, intc_count, NULL);
|
rc = sFdtModule->setup_devices(intc_table, intc_count, NULL);
|
||||||
if (rc != B_OK)
|
if (rc != B_OK)
|
||||||
panic("No interrupt controllers found!\n");
|
panic("No interrupt controllers found!\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
#if 0
|
||||||
InterruptController(fdt_module_info *fdtModule, fdt_device_node node)
|
InterruptController(fdt_module_info *fdtModule, fdt_device_node node)
|
||||||
: fFDT(fdtModule), fNode(node) {
|
: fFDT(fdtModule), fNode(node) {
|
||||||
if (sInstance) {
|
if (sInstance) {
|
||||||
@@ -32,6 +33,7 @@ protected:
|
|||||||
// Keep our node around as we might want to grab attributes from it
|
// Keep our node around as we might want to grab attributes from it
|
||||||
fdt_module_info *fFDT;
|
fdt_module_info *fFDT;
|
||||||
fdt_device_node fNode;
|
fdt_device_node fNode;
|
||||||
|
#endif
|
||||||
|
|
||||||
static InterruptController *sInstance;
|
static InterruptController *sInstance;
|
||||||
};
|
};
|
||||||
@@ -50,6 +52,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
#if 0
|
||||||
HardwareTimer(fdt_module_info *fdtModule, fdt_device_node node)
|
HardwareTimer(fdt_module_info *fdtModule, fdt_device_node node)
|
||||||
: fFDT(fdtModule), fNode(node) {
|
: fFDT(fdtModule), fNode(node) {
|
||||||
if (sInstance) {
|
if (sInstance) {
|
||||||
@@ -61,6 +64,7 @@ protected:
|
|||||||
// Keep our node around as we might want to grab attributes from it
|
// Keep our node around as we might want to grab attributes from it
|
||||||
fdt_module_info *fFDT;
|
fdt_module_info *fFDT;
|
||||||
fdt_device_node fNode;
|
fdt_device_node fNode;
|
||||||
|
#endif
|
||||||
|
|
||||||
static HardwareTimer *sInstance;
|
static HardwareTimer *sInstance;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ OMAP3InterruptController::SoftReset()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
OMAP3InterruptController::OMAP3InterruptController(fdt_module_info *fdt, fdt_device_node node)
|
OMAP3InterruptController::OMAP3InterruptController(fdt_module_info *fdt, fdt_device_node node)
|
||||||
: InterruptController(fdt, node),
|
: InterruptController(fdt, node),
|
||||||
fNumPending(3)
|
fNumPending(3)
|
||||||
@@ -105,6 +106,7 @@ OMAP3InterruptController::OMAP3InterruptController(fdt_module_info *fdt, fdt_dev
|
|||||||
// Enable protection (MPU registers only available in privileged mode)
|
// Enable protection (MPU registers only available in privileged mode)
|
||||||
fRegBase[INTCPS_PROTECTION] |= 1;
|
fRegBase[INTCPS_PROTECTION] |= 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
@@ -181,6 +183,7 @@ OMAP3Timer::Clear()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
OMAP3Timer::OMAP3Timer(fdt_module_info *fdtModule, fdt_device_node node)
|
OMAP3Timer::OMAP3Timer(fdt_module_info *fdtModule, fdt_device_node node)
|
||||||
: HardwareTimer(fdtModule, node),
|
: HardwareTimer(fdtModule, node),
|
||||||
fSystemTime(0)
|
fSystemTime(0)
|
||||||
@@ -202,3 +205,4 @@ OMAP3Timer::OMAP3Timer(fdt_module_info *fdtModule, fdt_device_node node)
|
|||||||
|
|
||||||
install_io_interrupt_handler(fInterrupt, &OMAP3Timer::_InterruptWrapper, this, 0);
|
install_io_interrupt_handler(fInterrupt, &OMAP3Timer::_InterruptWrapper, this, 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -14,13 +14,15 @@ public:
|
|||||||
void DisableInterrupt(int irq);
|
void DisableInterrupt(int irq);
|
||||||
void HandleInterrupt();
|
void HandleInterrupt();
|
||||||
|
|
||||||
|
#if 0
|
||||||
static status_t Init(fdt_module_info *fdt, fdt_device_node node, void *cookie) {
|
static status_t Init(fdt_module_info *fdt, fdt_device_node node, void *cookie) {
|
||||||
InterruptController *ic = new(std::nothrow) OMAP3InterruptController(fdt, node);
|
InterruptController *ic = new(std::nothrow) OMAP3InterruptController(fdt, node);
|
||||||
// XXX implement InitCheck() functionality
|
// XXX implement InitCheck() functionality
|
||||||
return ic != NULL ? B_OK : B_NO_MEMORY;
|
return ic != NULL ? B_OK : B_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
protected:
|
protected:
|
||||||
OMAP3InterruptController(fdt_module_info *fdt, fdt_device_node node);
|
//OMAP3InterruptController(fdt_module_info *fdt, fdt_device_node node);
|
||||||
|
|
||||||
void SoftReset();
|
void SoftReset();
|
||||||
|
|
||||||
@@ -35,6 +37,7 @@ public:
|
|||||||
bigtime_t Time();
|
bigtime_t Time();
|
||||||
void Clear();
|
void Clear();
|
||||||
|
|
||||||
|
#if 0
|
||||||
static status_t Init(fdt_module_info *fdt, fdt_device_node node, void *cookie) {
|
static status_t Init(fdt_module_info *fdt, fdt_device_node node, void *cookie) {
|
||||||
if (sInstance == NULL) {
|
if (sInstance == NULL) {
|
||||||
OMAP3Timer *timer = new(std::nothrow) OMAP3Timer(fdt, node);
|
OMAP3Timer *timer = new(std::nothrow) OMAP3Timer(fdt, node);
|
||||||
@@ -46,9 +49,10 @@ public:
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
OMAP3Timer(fdt_module_info *fdtModule, fdt_device_node node);
|
//OMAP3Timer(fdt_module_info *fdtModule, fdt_device_node node);
|
||||||
|
|
||||||
static int32 _InterruptWrapper(void *data);
|
static int32 _InterruptWrapper(void *data);
|
||||||
int32 HandleInterrupt();
|
int32 HandleInterrupt();
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ PXAInterruptController::HandleInterrupt()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
PXAInterruptController::PXAInterruptController(fdt_module_info *fdt, fdt_device_node node)
|
PXAInterruptController::PXAInterruptController(fdt_module_info *fdt, fdt_device_node node)
|
||||||
: InterruptController(fdt, node) {
|
: InterruptController(fdt, node) {
|
||||||
fRegArea = fFDT->map_reg_range(node, 0, (void**)&fRegBase);
|
fRegArea = fFDT->map_reg_range(node, 0, (void**)&fRegBase);
|
||||||
@@ -49,6 +50,7 @@ PXAInterruptController::PXAInterruptController(fdt_module_info *fdt, fdt_device_
|
|||||||
fRegBase[PXA_ICMR] = 0;
|
fRegBase[PXA_ICMR] = 0;
|
||||||
fRegBase[PXA_ICMR2] = 0;
|
fRegBase[PXA_ICMR2] = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PXA_TIMERS_INTERRUPT 7 /* OST_4_11 */
|
#define PXA_TIMERS_INTERRUPT 7 /* OST_4_11 */
|
||||||
|
|
||||||
@@ -138,6 +140,7 @@ PXATimer::HandleInterrupt()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
PXATimer::PXATimer(fdt_module_info *fdt, fdt_device_node node)
|
PXATimer::PXATimer(fdt_module_info *fdt, fdt_device_node node)
|
||||||
: HardwareTimer(fdt, node)
|
: HardwareTimer(fdt, node)
|
||||||
{
|
{
|
||||||
@@ -152,3 +155,4 @@ PXATimer::PXATimer(fdt_module_info *fdt, fdt_device_node node)
|
|||||||
|
|
||||||
install_io_interrupt_handler(PXA_TIMERS_INTERRUPT, &PXATimer::_InterruptWrapper, NULL, 0);
|
install_io_interrupt_handler(PXA_TIMERS_INTERRUPT, &PXATimer::_InterruptWrapper, NULL, 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -14,14 +14,16 @@ public:
|
|||||||
void DisableInterrupt(int irq);
|
void DisableInterrupt(int irq);
|
||||||
void HandleInterrupt();
|
void HandleInterrupt();
|
||||||
|
|
||||||
|
#if 0
|
||||||
static status_t Init(fdt_module_info *fdt, fdt_device_node node, void *cookie) {
|
static status_t Init(fdt_module_info *fdt, fdt_device_node node, void *cookie) {
|
||||||
InterruptController *ic = new(std::nothrow) PXAInterruptController(fdt, node);
|
InterruptController *ic = new(std::nothrow) PXAInterruptController(fdt, node);
|
||||||
// XXX implement InitCheck() functionality
|
// XXX implement InitCheck() functionality
|
||||||
return ic != NULL ? B_OK : B_NO_MEMORY;
|
return ic != NULL ? B_OK : B_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PXAInterruptController(fdt_module_info *fdt, fdt_device_node node);
|
//PXAInterruptController(fdt_module_info *fdt, fdt_device_node node);
|
||||||
|
|
||||||
area_id fRegArea;
|
area_id fRegArea;
|
||||||
uint32 *fRegBase;
|
uint32 *fRegBase;
|
||||||
@@ -34,14 +36,16 @@ public:
|
|||||||
void Clear();
|
void Clear();
|
||||||
bigtime_t Time();
|
bigtime_t Time();
|
||||||
|
|
||||||
|
#if 0
|
||||||
static status_t Init(fdt_module_info *fdt, fdt_device_node node, void *cookie) {
|
static status_t Init(fdt_module_info *fdt, fdt_device_node node, void *cookie) {
|
||||||
PXATimer *timer = new(std::nothrow) PXATimer(fdt, node);
|
PXATimer *timer = new(std::nothrow) PXATimer(fdt, node);
|
||||||
// XXX implement InitCheck() functionality
|
// XXX implement InitCheck() functionality
|
||||||
return timer != NULL ? B_OK : B_NO_MEMORY;
|
return timer != NULL ? B_OK : B_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PXATimer(fdt_module_info *fdt, fdt_device_node node);
|
//PXATimer(fdt_module_info *fdt, fdt_device_node node);
|
||||||
|
|
||||||
area_id fRegArea;
|
area_id fRegArea;
|
||||||
uint32 *fRegBase;
|
uint32 *fRegBase;
|
||||||
|
|||||||
Reference in New Issue
Block a user