LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Macros | Functions | Variables
xenon_syscalls.c File Reference
#include <_ansi.h>
#include <_syslist.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/iosupport.h>
#include <sys/dirent.h>
#include <sys/errno.h>
#include <sys/time.h>
#include <time/time.h>
#include <assert.h>
#include <debug.h>
#include <ppc/atomic.h>
#include <ppc/register.h>
#include <xenon_soc/xenon_power.h>
#include <xenon_smc/xenon_smc.h>
Include dependency graph for xenon_syscalls.c:

Go to the source code of this file.

Macros

#define XELL_FOOTER_OFFSET   (256*1024-16)
 
#define XELL_FOOTER_LENGTH   16
 
#define XELL_FOOTER   "xxxxxxxxxxxxxxxx"
 
#define RTC_BASE   1005782400UL
 

Functions

ssize_t vfs_console_write (struct _reent *r, int fd, const char *src, size_t len)
 
void return_to_xell (unsigned int nand_addr, unsigned int phy_loading_addr)
 
void enet_quiesce ()
 
void usb_shutdown (void)
 
void shutdown_drivers ()
 
void try_return_to_xell (unsigned int nand_addr, unsigned int phy_loading_addr)
 

Variables

unsigned char heap_begin
 
unsigned char * heap_ptr
 
__syscalls_t __syscalls
 

Macro Definition Documentation

◆ RTC_BASE

#define RTC_BASE   1005782400UL

Definition at line 58 of file xenon_syscalls.c.

◆ XELL_FOOTER

#define XELL_FOOTER   "xxxxxxxxxxxxxxxx"

Definition at line 24 of file xenon_syscalls.c.

◆ XELL_FOOTER_LENGTH

#define XELL_FOOTER_LENGTH   16

Definition at line 23 of file xenon_syscalls.c.

◆ XELL_FOOTER_OFFSET

#define XELL_FOOTER_OFFSET   (256*1024-16)

Definition at line 22 of file xenon_syscalls.c.

Function Documentation

◆ enet_quiesce()

void enet_quiesce ( )

Definition at line 419 of file enet.c.

◆ return_to_xell()

void return_to_xell ( unsigned int  nand_addr,
unsigned int  phy_loading_addr 
)

◆ shutdown_drivers()

void shutdown_drivers ( )

Definition at line 92 of file xenon_syscalls.c.

◆ try_return_to_xell()

void try_return_to_xell ( unsigned int  nand_addr,
unsigned int  phy_loading_addr 
)

Definition at line 99 of file xenon_syscalls.c.

◆ usb_shutdown()

void usb_shutdown ( void  )

Definition at line 280 of file usbmain.c.

◆ vfs_console_write()

ssize_t vfs_console_write ( struct _reent *  r,
int  fd,
const char *  src,
size_t  len 
)

Fake vfs

Definition at line 25 of file newlib.c.

Variable Documentation

◆ __syscalls

__syscalls_t __syscalls
Initial value:
= {
xenon_sbrk,
NULL,
NULL,
NULL,
NULL,
xenon_malloc_lock,
xenon_malloc_unlock,
xenon_exit,
xenon_gettimeofday
}
#define NULL
Definition: def.h:47

Definition at line 43 of file xenon_syscalls.c.

◆ heap_begin

unsigned char heap_begin
extern

◆ heap_ptr

unsigned char* heap_ptr

Definition at line 27 of file xenon_syscalls.c.