- fixed libsys includes

git-svn-id: http://moon:8086/svn/mips@201 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2021-11-23 18:42:38 +00:00
parent d8bd262509
commit b454e8dd00
14 changed files with 23 additions and 18 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ BOARD ?=ml402
include $(MIPS_HOME)/make/mips_app.mk
PROG-ml402 = $(addprefix $(BUILD_DIR)/, hello.elf testbench.elf test_irq.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf life.elf r3.elf gunzip.elf basic_math.elf jman_patches.elf jman_patchmeshes.elf jman_polys.elf test_hpi.elf test_vga.elf test_fft.elf flashtest.elf)
PROG-ml402 = $(addprefix $(BUILD_DIR)/, hello.elf testbench.elf test_irq.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf life.elf r3.elf gunzip.elf basic_math.elf jman_patches.elf jman_patchmeshes.elf jman_polys.elf test_hpi.elf test_vga.elf test_fft.elf flashtest.elf test_emac_sim.elf)
PROG-denano = $(addprefix $(BUILD_DIR)/, hello.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf testbench_denano.elf)
PROG-sim = $(addprefix $(BUILD_DIR)/, hello.elf test_exception_sim.elf)
-7
View File
@@ -7,13 +7,6 @@
#include <stdint.h>
#ifndef ERROR_BASE
#define ERROR_BASE 0x80000000
#endif
#ifndef IS_ERROR
#define IS_ERROR(e) ((e & ERROR_BASE) == ERROR_BASE)
#endif
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
+1 -1
View File
@@ -3,7 +3,7 @@
#include "asm/regdef.h"
#include "xcpt.h"
#include "irq.h"
#include <cop0.h>
#include "cop0.h"
static fp_irq_t g_irq_handler[MAX_NUM_IRQ] = {NULL};
+1
View File
@@ -30,6 +30,7 @@ typedef struct _suart_if_t
extern "C" {
#endif
void UART_setbaud(void const *pInst, uint32_t baudrate);
int UART_readchar(void const *pInst);
void UART_writechar(void const *pInst, char c);
+2 -1
View File
@@ -5,7 +5,8 @@
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include "libsys.h"
#include <libsys/libsys.h>
void EMAC_TX_commit(void)
{
+1 -1
View File
@@ -2,7 +2,7 @@
#define EMAC_H
#include <sys/types.h>
#include "libsys.h"
#include <libsys/libsys.h>
void EMAC_TX_commit(void);
void EMAC_TX_alloc(uint32_t size);
+4 -1
View File
@@ -6,6 +6,9 @@
#include <time.h>
#include <libsys/libsys.h>
#include <libsys/uart.h>
#include <libsys/console.h>
#include <libsys/irq.h>
#include "crc32.h"
#include "inflate.h"
@@ -16,7 +19,7 @@ char * volatile pPtr_w;
volatile int timeout_cnt;
volatile int file_len;
void handler3(struct xcptcontext *xcp)
void handler3(EXCEPTION_CONTEXT *xcp)
{
volatile uint32_t *pUART_stat = (uint32_t*)SYS_UART0_STAT;
volatile uint32_t *pUART_data = (uint32_t*)SYS_UART0_DATA;
+2 -2
View File
@@ -47,7 +47,7 @@ Point2D points[NPOINTS] = {
};
RtColor color = {.9,.9,.5};
Go() {
void Go() {
RiColor(color);
RiRotate(-90.0, 1.0, 0.0, 0.0);
SurfOR(points, NPOINTS);
@@ -66,7 +66,7 @@ typedef struct _testi
RtPointer p;
} testi;
main()
int main()
{
RtInt frame, i;
char filename[256];
+1 -1
View File
@@ -108,7 +108,7 @@ void Go(void)
PolySurfOR(points, colors, NPOINTS);
}
main()
int main()
{
RiBegin(RI_NULL); /* As always */
+1
View File
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <libsys/libsys.h>
#include <libsys/console.h>
struct substantive
{
+1
View File
@@ -15,6 +15,7 @@
* or
* ./r3 | xv -
*/
#include <string.h>
#include <libsys/libsys.h>
uint32_t *pP;
+3 -1
View File
@@ -5,7 +5,9 @@
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include "libsys.h"
#include <libsys/irq.h>
#include <libsys/cop0.h>
#include "emac.h"
volatile uint32_t g_rx_pkt_cnt;
+1 -1
View File
@@ -278,7 +278,7 @@ uint32_t conf_write(uint16_t *pConfDescr, uint32_t neps, ep_descr_t *pEP)
// Copy OTG description
pos += size;
size = sizeof(ep_descr_t);
size = sizeof(otg_descr_t);
memcpy(&pStr8[pos], &otg_descr, size);
pos += size;
+4 -1
View File
@@ -6,6 +6,9 @@
#include <sys/time.h>
#include <libsys/libsys.h>
#include <libsys/console.h>
#include <libsys/screen.h>
#include <libsys/uart.h>
#include <libsys/gpio.h>
#include <libsys/irq.h>
#include <libsys/mips_gfx.h>
@@ -17,7 +20,7 @@ static volatile int32_t mouse_y;
static box_t box_even, box_odd, line_h_even, line_v_even, line_h_odd, line_v_odd, cross_v, cross_h;
static gfx_t gfx;
static volatile int _g_posx, _g_posy;
static volatile g_btn_l, g_btn_r;
static volatile int g_btn_l, g_btn_r;
static volatile uint32_t g_color;
static char *ps2_name[PS2_NUM_IF] = {"PS2-0", "PS2-1"};