boot/arch: Remove kernel_stubs.cpp and frame_buffer_console.
They were never used anywhere.
This commit is contained in:
@@ -20,13 +20,6 @@ local kernelArchSources =
|
|||||||
arch_uart_pl011.cpp
|
arch_uart_pl011.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
local kernelDebugSources =
|
|
||||||
blue_screen.cpp
|
|
||||||
font.cpp
|
|
||||||
font_spleen.cpp
|
|
||||||
frame_buffer_console.cpp
|
|
||||||
;
|
|
||||||
|
|
||||||
local kernelGenericDriverSources =
|
local kernelGenericDriverSources =
|
||||||
debug_uart.cpp
|
debug_uart.cpp
|
||||||
debug_uart_8250.cpp
|
debug_uart_8250.cpp
|
||||||
@@ -43,10 +36,6 @@ for platform in [ MultiBootSubDirSetup u-boot efi ] {
|
|||||||
|
|
||||||
arch_cpu.cpp
|
arch_cpu.cpp
|
||||||
|
|
||||||
# Reuse a subset of kernel debugging.
|
|
||||||
kernel_stubs.cpp
|
|
||||||
$(kernelDebugSources)
|
|
||||||
|
|
||||||
$(librootGenericSources)
|
$(librootGenericSources)
|
||||||
$(librootArchSources)
|
$(librootArchSources)
|
||||||
:
|
:
|
||||||
@@ -68,9 +57,6 @@ for platform in [ MultiBootSubDirSetup u-boot efi ] {
|
|||||||
|
|
||||||
SEARCH on [ FGristFiles $(librootGenericSources) ]
|
SEARCH on [ FGristFiles $(librootGenericSources) ]
|
||||||
= [ FDirName $(HAIKU_TOP) src system libroot posix string arch generic ] ;
|
= [ FDirName $(HAIKU_TOP) src system libroot posix string arch generic ] ;
|
||||||
|
|
||||||
SEARCH on [ FGristFiles $(kernelDebugSources) ]
|
|
||||||
= [ FDirName $(HAIKU_TOP) src system kernel debug ] ;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2012 Haiku, Inc. All rights reserved.
|
|
||||||
* Distributed under the terms of the MIT License.
|
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Michael Lotz, [email protected]
|
|
||||||
*/
|
|
||||||
|
|
||||||
// This file just collects stubs that allow kernel sources to be used in the
|
|
||||||
// bootloader more easily.
|
|
||||||
|
|
||||||
#include <OS.h>
|
|
||||||
#include <lock.h>
|
|
||||||
#include <arch_config.h>
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" bool
|
|
||||||
in_command_invocation()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" void
|
|
||||||
abort_debugger_command()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" char
|
|
||||||
kgetc()
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" status_t
|
|
||||||
_mutex_lock(mutex*, void*)
|
|
||||||
{
|
|
||||||
return B_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" void
|
|
||||||
_mutex_unlock(mutex*)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef ATOMIC_FUNCS_ARE_SYSCALLS
|
|
||||||
|
|
||||||
/* needed by packagefs */
|
|
||||||
extern "C" int32
|
|
||||||
atomic_add(vint32 *value, int32 addValue)
|
|
||||||
{
|
|
||||||
int32 old = *value;
|
|
||||||
*value += addValue;
|
|
||||||
return old;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /*ATOMIC_FUNCS_ARE_SYSCALLS*/
|
|
||||||
@@ -34,7 +34,6 @@ for platform in [ MultiBootSubDirSetup u-boot efi riscv ] {
|
|||||||
$(kernelArchDriverSources)
|
$(kernelArchDriverSources)
|
||||||
$(kernelGenericDriverSources)
|
$(kernelGenericDriverSources)
|
||||||
arch_cpu.cpp
|
arch_cpu.cpp
|
||||||
kernel_stubs.cpp
|
|
||||||
: # additional flags
|
: # additional flags
|
||||||
:
|
:
|
||||||
$(kernelArchObjects)
|
$(kernelArchObjects)
|
||||||
|
|||||||
@@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2012 Haiku, Inc. All rights reserved.
|
|
||||||
* Distributed under the terms of the MIT License.
|
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Michael Lotz, [email protected]
|
|
||||||
*/
|
|
||||||
|
|
||||||
// This file just collects stubs that allow kernel sources to be used in the
|
|
||||||
// bootloader more easily.
|
|
||||||
|
|
||||||
#include <OS.h>
|
|
||||||
#include <lock.h>
|
|
||||||
#include <arch_config.h>
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" bool
|
|
||||||
in_command_invocation()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" void
|
|
||||||
abort_debugger_command()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" char
|
|
||||||
kgetc()
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" status_t
|
|
||||||
_mutex_lock(mutex*, void*)
|
|
||||||
{
|
|
||||||
return B_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
extern "C" void
|
|
||||||
_mutex_unlock(mutex*)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef ATOMIC_FUNCS_ARE_SYSCALLS
|
|
||||||
|
|
||||||
/* needed by packagefs */
|
|
||||||
extern "C" int32
|
|
||||||
atomic_add(vint32 *value, int32 addValue)
|
|
||||||
{
|
|
||||||
int32 old = *value;
|
|
||||||
*value += addValue;
|
|
||||||
return old;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /*ATOMIC_FUNCS_ARE_SYSCALLS*/
|
|
||||||
Reference in New Issue
Block a user