mirror of
https://github.com/fail0verflow/mini.git
synced 2025-02-20 05:22:42 +01:00
Implemented git version printing in infobox
This commit is contained in:
parent
f09e899399
commit
8366174042
3
Makefile
3
Makefile
@ -29,7 +29,8 @@ upload: $(TARGET_BIN)
|
|||||||
@$(WIIDEV)/bin/bootmii -a $<
|
@$(WIIDEV)/bin/bootmii -a $<
|
||||||
|
|
||||||
git_version.h:
|
git_version.h:
|
||||||
echo 'const char git_version[] = "'`./describesimple.sh`'";' > git_version.h
|
@echo " GITVER $@"
|
||||||
|
@echo 'const char git_version[] = "'`./describesimple.sh`'";' > git_version.h
|
||||||
|
|
||||||
clean: myclean
|
clean: myclean
|
||||||
|
|
||||||
|
7
ipc.c
7
ipc.c
@ -13,6 +13,7 @@ Copyright (C) 2009 John Kelley <wiidev@kelley.ca>
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include "string.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "irq.h"
|
#include "irq.h"
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
@ -36,6 +37,7 @@ static volatile ipc_request out_queue[IPC_OUT_SIZE] ALIGNED(32) MEM2_BSS;
|
|||||||
static volatile ipc_request slow_queue[IPC_SLOW_SIZE];
|
static volatile ipc_request slow_queue[IPC_SLOW_SIZE];
|
||||||
|
|
||||||
extern char __mem2_area_start[];
|
extern char __mem2_area_start[];
|
||||||
|
extern const char git_version[];
|
||||||
|
|
||||||
// These defines are for the ARMCTRL regs
|
// These defines are for the ARMCTRL regs
|
||||||
// See http://wiibrew.org/wiki/Hardware/IPC
|
// See http://wiibrew.org/wiki/Hardware/IPC
|
||||||
@ -142,6 +144,11 @@ static u32 process_slow(volatile ipc_request *req)
|
|||||||
case IPC_SYS_GETVERS:
|
case IPC_SYS_GETVERS:
|
||||||
ipc_post(req->code, req->tag, 1, MINI_VERSION_MAJOR << 16 | MINI_VERSION_MINOR);
|
ipc_post(req->code, req->tag, 1, MINI_VERSION_MAJOR << 16 | MINI_VERSION_MINOR);
|
||||||
break;
|
break;
|
||||||
|
case IPC_SYS_GETGITS:
|
||||||
|
strlcpy((char *)req->args[0], git_version, 32);
|
||||||
|
dc_flushrange((void *)req->args[0], 32);
|
||||||
|
ipc_post(req->code, req->tag, 0);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
gecko_printf("IPC: unknown SLOW SYS request %04x\n", req->req);
|
gecko_printf("IPC: unknown SLOW SYS request %04x\n", req->req);
|
||||||
}
|
}
|
||||||
|
1
ipc.h
1
ipc.h
@ -49,6 +49,7 @@ Copyright (C) 2009 John Kelley <wiidev@kelley.ca>
|
|||||||
#define IPC_SYS_PING 0x0000
|
#define IPC_SYS_PING 0x0000
|
||||||
#define IPC_SYS_JUMP 0x0001
|
#define IPC_SYS_JUMP 0x0001
|
||||||
#define IPC_SYS_GETVERS 0x0002
|
#define IPC_SYS_GETVERS 0x0002
|
||||||
|
#define IPC_SYS_GETGITS 0x0003
|
||||||
#define IPC_SYS_WRITE32 0x0100
|
#define IPC_SYS_WRITE32 0x0100
|
||||||
#define IPC_SYS_WRITE16 0x0101
|
#define IPC_SYS_WRITE16 0x0101
|
||||||
#define IPC_SYS_WRITE8 0x0102
|
#define IPC_SYS_WRITE8 0x0102
|
||||||
|
Loading…
x
Reference in New Issue
Block a user