git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@984 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
957da89e71
commit
3d64c337cb
|
@ -16,9 +16,9 @@
|
|||
# Start of default section
|
||||
#
|
||||
|
||||
TRGT = i686-pc-cygwin-
|
||||
CC = $(TRGT)gcc-4
|
||||
AS = $(TRGT)gcc-4 -x assembler-with-cpp
|
||||
TRGT =
|
||||
CC = $(TRGT)gcc
|
||||
AS = $(TRGT)gcc -x assembler-with-cpp
|
||||
|
||||
# List all default C defines here, like -D_DEBUG=1
|
||||
DDEFS =
|
||||
|
@ -102,7 +102,7 @@ CPFLAGS += -MD -MP -MF .dep/$(@F).d
|
|||
# makefile rules
|
||||
#
|
||||
|
||||
all: $(OBJS) $(PROJECT).exe
|
||||
all: $(OBJS) $(PROJECT)
|
||||
|
||||
%o : %c
|
||||
$(CC) -c $(CPFLAGS) -I . $(INCDIR) $< -o $@
|
||||
|
@ -110,7 +110,7 @@ all: $(OBJS) $(PROJECT).exe
|
|||
%o : %s
|
||||
$(AS) -c $(ASFLAGS) $< -o $@
|
||||
|
||||
%exe: $(OBJS)
|
||||
$(PROJECT): $(OBJS)
|
||||
$(CC) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
|
||||
|
||||
gcov:
|
||||
|
@ -120,7 +120,7 @@ gcov:
|
|||
|
||||
clean:
|
||||
-rm -f $(OBJS)
|
||||
-rm -f $(PROJECT).exe
|
||||
-rm -f $(PROJECT)
|
||||
-rm -f $(PROJECT).map
|
||||
-rm -f $(SRC:.c=.c.bak)
|
||||
-rm -f $(SRC:.c=.lst)
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/time.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/**
|
||||
* @addtogroup LINUXSIM_CORE
|
||||
|
@ -34,7 +35,7 @@ static bool_t pending = FALSE;
|
|||
|
||||
void timer(int numSignal) {
|
||||
|
||||
pending = TRUE;
|
||||
pending = TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -71,8 +72,8 @@ void ChkIntSources(void) {
|
|||
*/
|
||||
__attribute__((used))
|
||||
static void __dummy(Thread *otp, Thread *ntp) {
|
||||
asm volatile (".globl @port_switch@8 \n\t" \
|
||||
"@port_switch@8: \n\t" \
|
||||
asm volatile (".globl port_switch \n\t" \
|
||||
"port_switch: \n\t" \
|
||||
"push %ebp \n\t" \
|
||||
"push %esi \n\t" \
|
||||
"push %edi \n\t" \
|
||||
|
@ -101,7 +102,7 @@ void port_halt(void) {
|
|||
void threadexit(void) {
|
||||
|
||||
asm volatile ("push %eax \n\t" \
|
||||
"call _chThdExit");
|
||||
"call chThdExit");
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -106,7 +106,7 @@ struct context {
|
|||
* calculation of the correct working area size.
|
||||
*/
|
||||
#ifndef INT_REQUIRED_STACK
|
||||
#define INT_REQUIRED_STACK 0x40000
|
||||
#define INT_REQUIRED_STACK 0x8000
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
@ -26,7 +26,7 @@ static msg_t Thread1(void *arg) {
|
|||
|
||||
while (TRUE) {
|
||||
chThdSleepMilliseconds(1000);
|
||||
printf("Hello World!");
|
||||
printf("-\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue