Gintrace 0.10.1 - fix gint support
@fix <> quick fix gint compilation with fxlibc
This commit is contained in:
parent
42e6d9b54e
commit
74aa43023c
|
@ -24,8 +24,9 @@ int main(void)
|
|||
//syscall = systab[0x1da3]; // Bfile_OpenFile_OS()
|
||||
//syscall = systab[0x1353]; // Comm_Open()
|
||||
//syscall = systab[0x1dac]; // Bfile_ReadFile_OS()
|
||||
syscall = systab[0x1630]; // App_optimize()
|
||||
//syscall = systab[0x1630]; // App_optimize()
|
||||
//syscall = systab[0x1e56];
|
||||
syscall = systab[0x0d9f]; // SMEM_fugue_FS_???(int mode)
|
||||
#endif
|
||||
#ifdef FX9860G
|
||||
systab = *(void ***)0x8001007c;
|
||||
|
@ -51,11 +52,13 @@ int main(void)
|
|||
//---
|
||||
// TEST part
|
||||
//---
|
||||
int (*smem_fugue_unknown)(int mode) = (void *)syscall;
|
||||
gint_world_switch(GINT_CALL(smem_fugue_unknown, -2));
|
||||
|
||||
#if 0
|
||||
void (*app_optimize)(void) = (void*)syscall;
|
||||
gint_world_switch(GINT_CALL(app_optimize));
|
||||
|
||||
|
||||
#if 0
|
||||
int (*bfile_openfile_os)(const uint16_t *filename, int mode, int p3);
|
||||
int (*bfile_readfile_os)(int handle, void *b, size_t n, off_t p);
|
||||
//void (*comm_open)(int mode) = syscall;
|
||||
|
|
|
@ -247,7 +247,7 @@ ifeq ($1,cg)
|
|||
target-$(tname)-cflags += $(CG_INCLUDE) $(CG_CFLAGS)
|
||||
target-$(tname)-ldflags += -T fxcg50.ld
|
||||
target-$(tname)-libs := -L. -L $(GCC_INCLUDE_CG)
|
||||
target-$(tname)-libs += -lgint-cg -lgintrace-cg -lgint-cg -lc -lgcc
|
||||
target-$(tname)-libs += -lgint-cg -lgintrace-cg -lgint-cg -lc -lgint-cg -lgcc
|
||||
target-$(tname)-exec := $3.g3a
|
||||
endif
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// fxBoot:lexer - lexer used to generate ARGC and ARGV
|
||||
//---
|
||||
#include "gintrace/lexer.h"
|
||||
#include <gint/std/stdlib.h>
|
||||
#include <gint/std/string.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* define external symbols */
|
||||
extern int lexer_strtotab(int *argc, char ***argv, char const *str);
|
||||
|
|
Loading…
Reference in New Issue