Remove Atari stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38928 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
#include <boot/platform.h>
|
#include <boot/platform.h>
|
||||||
#include <boot/stdio.h>
|
#include <boot/stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <Errors.h>
|
#include <Errors.h>
|
||||||
|
|
||||||
@@ -19,21 +20,20 @@ void
|
|||||||
panic(const char *format, ...)
|
panic(const char *format, ...)
|
||||||
{
|
{
|
||||||
struct AlertMessage {
|
struct AlertMessage {
|
||||||
UWORD column;
|
uint16 column;
|
||||||
UBYTE line;
|
uint8 line;
|
||||||
char messages[14+512];
|
char messages[14+512];
|
||||||
} alert = {
|
} alert = {
|
||||||
10, 12,
|
10, 12,
|
||||||
"*** PANIC ***"
|
"*** PANIC ***"
|
||||||
}
|
};
|
||||||
|
|
||||||
const char greetings[] = "\n*** PANIC ***";
|
|
||||||
char *buffer = &alert.messages[14];
|
char *buffer = &alert.messages[14];
|
||||||
va_list list;
|
va_list list;
|
||||||
|
|
||||||
//platform_switch_to_text_mode();
|
//platform_switch_to_text_mode();
|
||||||
|
|
||||||
memset(buffer, 512);
|
memset(buffer, 0, 512);
|
||||||
|
|
||||||
va_start(list, format);
|
va_start(list, format);
|
||||||
vsnprintf(buffer, 512-1, format, list);
|
vsnprintf(buffer, 512-1, format, list);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "keyboard.h"
|
#include "keyboard.h"
|
||||||
#include "toscalls.h"
|
#include "amicalls.h"
|
||||||
|
|
||||||
#include <boot/platform.h>
|
#include <boot/platform.h>
|
||||||
|
|
||||||
@@ -13,12 +13,8 @@
|
|||||||
static uint32
|
static uint32
|
||||||
check_for_key(void)
|
check_for_key(void)
|
||||||
{
|
{
|
||||||
union key k;
|
//TODO
|
||||||
if (Bconstat(DEV_CON) == 0)
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
k.d0 = Bconin(DEV_CON);
|
|
||||||
return k.d0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -33,8 +29,8 @@ clear_key_buffer(void)
|
|||||||
extern "C" union key
|
extern "C" union key
|
||||||
wait_for_key(void)
|
wait_for_key(void)
|
||||||
{
|
{
|
||||||
|
//TODO
|
||||||
union key key;
|
union key key;
|
||||||
key.d0 = Bconin(DEV_CON);
|
|
||||||
|
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "mmu.h"
|
#include "mmu.h"
|
||||||
#include "keyboard.h"
|
#include "keyboard.h"
|
||||||
#include "toscalls.h"
|
#include "amicalls.h"
|
||||||
|
|
||||||
|
|
||||||
#define HEAP_SIZE 65536
|
#define HEAP_SIZE 65536
|
||||||
@@ -113,8 +113,8 @@ extern "C" void
|
|||||||
platform_exit(void)
|
platform_exit(void)
|
||||||
{
|
{
|
||||||
// Terminate
|
// Terminate
|
||||||
// TODO: Puntaes() instead ?
|
//TODO
|
||||||
Pterm0();
|
while (true) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -122,32 +122,20 @@ extern "C" void
|
|||||||
_start(void)
|
_start(void)
|
||||||
{
|
{
|
||||||
stage2_args args;
|
stage2_args args;
|
||||||
Bconout(DEV_CON, 'H');
|
|
||||||
|
|
||||||
//asm("cld"); // Ain't nothing but a GCC thang.
|
//asm("cld"); // Ain't nothing but a GCC thang.
|
||||||
//asm("fninit"); // initialize floating point unit
|
//asm("fninit"); // initialize floating point unit
|
||||||
|
|
||||||
clear_bss();
|
clear_bss();
|
||||||
Bconout(DEV_CON, 'A');
|
|
||||||
call_ctors();
|
call_ctors();
|
||||||
// call C++ constructors before doing anything else
|
// call C++ constructors before doing anything else
|
||||||
Bconout(DEV_CON, 'I');
|
|
||||||
|
|
||||||
args.heap_size = HEAP_SIZE;
|
args.heap_size = HEAP_SIZE;
|
||||||
args.arguments = NULL;
|
args.arguments = NULL;
|
||||||
|
|
||||||
// so we can dprintf
|
|
||||||
init_nat_features();
|
|
||||||
|
|
||||||
//serial_init();
|
//serial_init();
|
||||||
Bconout(DEV_CON, 'K');
|
|
||||||
console_init();
|
console_init();
|
||||||
Bconout(DEV_CON, 'U');
|
dprintf("ramtop = %p\n", NULL);
|
||||||
dprintf("membot = %p\n", (void*)*TOSVAR_membot);
|
|
||||||
dprintf("memtop = %p\n", (void*)*TOSVAR_memtop);
|
|
||||||
dprintf("v_bas_ad = %p\n", *TOSVAR_v_bas_ad);
|
|
||||||
dprintf("phystop = %p\n", (void*)*TOSVARphystop);
|
|
||||||
dprintf("ramtop = %p\n", (void*)*TOSVARramtop);
|
|
||||||
cpu_init();
|
cpu_init();
|
||||||
mmu_init();
|
mmu_init();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user