PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
s_m_init.c
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
11#include "libspu2_internal.h"
12
13int SpuInitMalloc(int num, char *top)
14{
15 libspu2_malloc_t *top_tmp;
16
17 if ( num <= 0 )
18 return 0;
19 top_tmp = (libspu2_malloc_t *)top;
20 _spu_memList = top_tmp;
21 _spu_AllocLastNum = 0;
22 top_tmp->addr_area = 0x40005010;
23 _spu_AllocBlockNum = num;
24 top_tmp->size_area = 0x1FAFF0;
25 return num;
26}