Changes

755 bytes added ,  22:46, 14 August 2016
no edit summary
Line 291: Line 291:  
|<code>uint32_t* OSGetSystemInfo(void)</code>
 
|<code>uint32_t* OSGetSystemInfo(void)</code>
 
|Returns pointer to OSSystemInfo struct (see below)
 
|Returns pointer to OSSystemInfo struct (see below)
 +
|-
 +
|OSIsDebuggerInitialized
 +
|<code>int OSIsDebuggerInitialized(void)</code>
 +
|Returns 1 if [https://en.wikipedia.org/wiki/GNU_Debugger GDB] has been initialized. Default is 0.
 
|-
 
|-
 
|OSIsDebuggerPresent
 
|OSIsDebuggerPresent
 
|<code>uint32_t OSIsDebuggerPresent(void)</code>
 
|<code>uint32_t OSIsDebuggerPresent(void)</code>
|Returns 1 if a debugger is present otherwise 0. Default is 0.
+
|Returns 1 if a debugger is present. Default is 0.
 +
|-
 +
|OSIsInterruptEnabled
 +
|<code>int OSIsInterruptEnabled(void)</code>
 +
|Returns 1 if [https://en.wikipedia.org/wiki/Interrupt interrupts] are enabled. Default is 1.
 +
|-
 +
|OSDisableInterrupts
 +
|<code>int OSDisableInterrupts(void)</code>
 +
|Disables interrupts. Returns 1 on success otherwise, if already disabled, returns 0.
 +
|-
 +
|OSIsAddressValid
 +
|<code>int OSIsAddressValid(int addr)</code>
 +
|Determines whether the given address addr is readable. Returns 1 or 0.
 +
|-
 +
|OSIsHomeButtonMenuEnabled
 +
|<code>int OSIsHomeButtonMenuEnabled(void)</code>
 +
|Whether the home menu button is enabled. Default is 1.
 
|-
 
|-
 
|OSGetConsoleType
 
|OSGetConsoleType