KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
asid.c File Reference
#include <kos.h>
#include <malloc.h>

Macros

#define WIDTH   640
 
#define HEIGHT   480
 
#define FB_SIZE   (WIDTH * HEIGHT * sizeof(uint16_t))
 
#define VIEW_ADDR   0x10000000
 
#define VIEW   ((uint16_t *)VIEW_ADDR)
 

Functions

 KOS_INIT_FLAGS (INIT_DEFAULT|INIT_MALLOCSTATS)
 
static void switch_to (mmucontext_t *cxt)
 
static uint16_t * map_view (mmucontext_t *cxt)
 
static void draw_view (int asid)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ FB_SIZE

#define FB_SIZE   (WIDTH * HEIGHT * sizeof(uint16_t))

Referenced by main(), and map_view().

◆ HEIGHT

#define HEIGHT   480

Referenced by draw_view().

◆ VIEW

#define VIEW   ((uint16_t *)VIEW_ADDR)

Referenced by draw_view(), and main().

◆ VIEW_ADDR

#define VIEW_ADDR   0x10000000

Referenced by map_view().

◆ WIDTH

#define WIDTH   640

Referenced by draw_view().

Function Documentation

◆ draw_view()

static void draw_view ( int asid)
static

References bfont_draw_str(), HEIGHT, VIEW, WIDTH, and y.

Referenced by main().

◆ KOS_INIT_FLAGS()

KOS_INIT_FLAGS ( INIT_DEFAULT| INIT_MALLOCSTATS)

◆ main()

◆ map_view()

static uint16_t * map_view ( mmucontext_t * cxt)
static

◆ switch_to()

static void switch_to ( mmucontext_t * cxt)
static

References cxt, mmu_switch_context(), and mmu_use_table().

Referenced by main().