PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
misc_fsck.c
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2004, 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 <thbase.h>
12#include <thevent.h>
13
14#include "libpfs.h"
15#include "misc_fsck.h"
16
17// 0x00002c00
18int fsckCreateEventFlag(void)
19{
20 iop_event_t EventFlagData;
21
22 EventFlagData.attr = EA_MULTI;
23 EventFlagData.bits = 0;
24 return CreateEventFlag(&EventFlagData);
25}
26
27// 0x00002c2c
28int fsckCreateThread(void (*function)(void *arg), int StackSize)
29{
30 iop_thread_t ThreadData;
31
32 ThreadData.attr = TH_C;
33 ThreadData.thread = function;
34 ThreadData.priority = 0x7b;
35 ThreadData.stacksize = StackSize;
36 return CreateThread(&ThreadData);
37}
#define EA_MULTI
Definition thevent.h:35