ANN: RTEMS@embedded world2016: Meeting with Chillout Hour

2016-02-15 Thread Thomas Doerfler
Hi,

just to let anyone know:

RTEMS@embedded world
===
The embedded brains GmbH will be present at the "embedded world 2016"
trade show in Nuremberg, Germany, which is opened from February 23 'til
February 25 2016, see:

http://www.embedded-world.de

One major topic on our stand 538 in hall 4 will be RTEMS.

RTEMS Chillout Hour
===
For the first time a "RTEMS Chillout Hour" takes place, the idea is to
meet and discuss all kinds of RTEMS topics.

You provide the discussions, we provide the cocktails ;-)

Who is present?
===
Apart from the embedded brains team, Joel Sherrill from OAR will once
again be present. I think this is a good opportunity to meet face to
face. We are looking forward to meet many RTEMS users during these days.

If anyone is interested in free tickets, please contact me privately.

wkr,

Thomas Doerfler.

-- 

embedded brains GmbH
Thomas Doerfler
Dornierstr. 4
D-82178 Puchheim
Germany
email: thomas.doerf...@embedded-brains.de
Phone: +49-89-18 94 741-12
Fax:   +49-89-18 94 741-09
PGP: Public key available on request.

Diese Nachricht ist keine geschÀftliche Mitteilung im Sinne des EHUG.
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Warning: Subdir-objects is disabled

2016-02-15 Thread punit vara
Today I was trying to bootstrap rtems. I have cloned repo.

git clone git://git.rtems.org/rtems.git

When I perform ./bootstrap It generates lots of warning

Makefile.am:24: warning: source file 'start/start.S' is in a subdirectory,
Makefile.am:24: but option 'subdir-objects' is disabled

I have found solution that I should add

AUTOMAKE_OPTIONS = subdir-objects

at top of Makefile.am But still I am getting warnings. What could be
the possible reason to stop this warnings. ? After that even I
modified configure.ac

AM_INIT_AUTOMAKE([subdir-objects])

Any suggestions please?
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: Warning: Subdir-objects is disabled

2016-02-15 Thread Marcos Díaz
Check your automake and autoconf versions, I think they must be automake
1.12.6 and autoconf 2.69 The bootstrapping should throw you no warnings

On Mon, Feb 15, 2016 at 10:21 AM, punit vara  wrote:

> Today I was trying to bootstrap rtems. I have cloned repo.
>
> git clone git://git.rtems.org/rtems.git
>
> When I perform ./bootstrap It generates lots of warning
>
> Makefile.am:24: warning: source file 'start/start.S' is in a subdirectory,
> Makefile.am:24: but option 'subdir-objects' is disabled
>
> I have found solution that I should add
>
> AUTOMAKE_OPTIONS = subdir-objects
>
> at top of Makefile.am But still I am getting warnings. What could be
> the possible reason to stop this warnings. ? After that even I
> modified configure.ac
>
> AM_INIT_AUTOMAKE([subdir-objects])
>
> Any suggestions please?
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>



-- 

__




Marcos Díaz

Software Engineer


San Lorenzo 47, 3rd Floor, Office 5

Córdoba, Argentina


Phone: +54 351 4217888 / +54 351 4218211/ +54 351 7617452

Skype: markdiaz22
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Warning: Subdir-objects is disabled

2016-02-15 Thread Marcos Díaz
You should use the toolchain built with the source builder to do the
bootstrapping

On Mon, Feb 15, 2016 at 10:24 AM, Marcos Díaz <
marcos.d...@tallertechnologies.com> wrote:

> Check your automake and autoconf versions, I think they must be automake
> 1.12.6 and autoconf 2.69 The bootstrapping should throw you no warnings
>
> On Mon, Feb 15, 2016 at 10:21 AM, punit vara  wrote:
>
>> Today I was trying to bootstrap rtems. I have cloned repo.
>>
>> git clone git://git.rtems.org/rtems.git
>>
>> When I perform ./bootstrap It generates lots of warning
>>
>> Makefile.am:24: warning: source file 'start/start.S' is in a subdirectory,
>> Makefile.am:24: but option 'subdir-objects' is disabled
>>
>> I have found solution that I should add
>>
>> AUTOMAKE_OPTIONS = subdir-objects
>>
>> at top of Makefile.am But still I am getting warnings. What could be
>> the possible reason to stop this warnings. ? After that even I
>> modified configure.ac
>>
>> AM_INIT_AUTOMAKE([subdir-objects])
>>
>> Any suggestions please?
>> ___
>> devel mailing list
>> devel@rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>>
>
>
>
> --
>
> __
>
> 
>
>
> Marcos Díaz
>
> Software Engineer
>
>
> San Lorenzo 47, 3rd Floor, Office 5
>
> Córdoba, Argentina
>
>
> Phone: +54 351 4217888 / +54 351 4218211/ +54 351 7617452
>
> Skype: markdiaz22
>
>


-- 

__




Marcos Díaz

Software Engineer


San Lorenzo 47, 3rd Floor, Office 5

Córdoba, Argentina


Phone: +54 351 4217888 / +54 351 4218211/ +54 351 7617452

Skype: markdiaz22
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Regarding GSOC 2016 BSP for BBB

2016-02-15 Thread punit vara
I am in my final year of Master of embedded system course. Last year
only I came to know about GSOC .I came to know about amazing rtos
rtems while searching for embedded system projects. I was bit late to
proceed proposal last year as I was not aware that much.This could be
my last chance to get selected for GSOC 2016. I am interested for
developing BSP for BBB as I have beaglebone black. I have read some of
peripheral need support.   Could I take this project this year ? If
yes , any suggestions for improving my chance to get selected this
year are welcome.

Regards,
Punit Vara
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


RTEMS Open Class in Huntsville March 14-18

2016-02-15 Thread Joel Sherrill
Hi

Just a quick reminder that there is an Open Class scheduled
in Huntsville Alabama USA for the week of March 14 - 18.

Details and registration forms are at http://rtems.com/trainingschedule

If you have questions, feel free to email me privately.

Thanks.

--joel sherrill
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Regarding GSOC 2016 BSP for BBB

2016-02-15 Thread Joel Sherrill
On Mon, Feb 15, 2016 at 7:31 AM, punit vara  wrote:

> I am in my final year of Master of embedded system course. Last year
> only I came to know about GSOC .I came to know about amazing rtos
> rtems while searching for embedded system projects. I was bit late to
> proceed proposal last year as I was not aware that much.This could be
> my last chance to get selected for GSOC 2016. I am interested for
> developing BSP for BBB as I have beaglebone black. I have read some of
> peripheral need support.   Could I take this project this year ? If
> yes , any suggestions for improving my chance to get selected this
> year are welcome.
>
>
I wasn't the mentor for the BB and Pi tasks last year although I tracked
and helped answer questions.

The BBB has a BSP with a number of the peripherals completed. I think you
need to review the current BSP to see what is missing. Looking at the status
reports from the projects last year will also help.

I am honestly unsure of what remains.

--joel


> Regards,
> Punit Vara
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

[PATCH 5/7] i386: prepare for paravirtualized interrupts

2016-02-15 Thread Gedare Bloom
---
 c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c | 5 ++---
 cpukit/score/cpu/i386/cpu.c  | 4 
 cpukit/score/cpu/i386/rtems/score/cpu.h  | 7 +++
 cpukit/score/cpu/i386/rtems/score/interrupts.h   | 9 -
 4 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c 
b/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c
index c9830f6..efc93a0 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c
+++ b/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c
@@ -11,10 +11,9 @@
 
 void _CPU_Fatal_halt(uint32_t source, uint32_t error)
 {
-  uint32_t _error_lvalue = ( _error );
   __asm__ volatile (
  "cli ; movl %0,%%eax ; hlt"
- : "=r" ((_error_lvalue))
- : "0" ((_error_lvalue))
+ : "=r" ((error))
+ : "0" ((error))
   );
 }
diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c
index 52eb511..cf27945 100644
--- a/cpukit/score/cpu/i386/cpu.c
+++ b/cpukit/score/cpu/i386/cpu.c
@@ -111,7 +111,11 @@ uint32_t   _CPU_ISR_Get_level( void )
 {
   uint32_t   level;
 
+#if !defined(RTEMS_PARAVIRT)
   i386_get_interrupt_level( level );
+#else
+  level = i386_get_interrupt_level();
+#endif
 
   return level;
 }
diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h 
b/cpukit/score/cpu/i386/rtems/score/cpu.h
index 3513650..34845b0 100644
--- a/cpukit/score/cpu/i386/rtems/score/cpu.h
+++ b/cpukit/score/cpu/i386/rtems/score/cpu.h
@@ -395,6 +395,7 @@ SCORE_EXTERN Context_Control_fp  _CPU_Null_fp_context;
  * + set a particular level
  */
 
+#if !defined(RTEMS_PARAVIRT)
 #define _CPU_ISR_Disable( _level ) i386_disable_interrupts( _level )
 
 #define _CPU_ISR_Enable( _level )  i386_enable_interrupts( _level )
@@ -406,6 +407,12 @@ SCORE_EXTERN Context_Control_fp  _CPU_Null_fp_context;
 if ( _new_level ) __asm__ volatile ( "cli" ); \
 else  __asm__ volatile ( "sti" ); \
   }
+#else
+#define _CPU_ISR_Disable( _level ) _level = i386_disable_interrupts( )
+#define _CPU_ISR_Enable( _level ) i386_enable_interrupts( _level )
+#define _CPU_ISR_Flash( _level ) i386_flash_interrupts( _level )
+#define _CPU_ISR_Set_level( _new_level ) i386_set_interrupt_level( _new_level)
+#endif
 
 uint32_t   _CPU_ISR_Get_level( void );
 
diff --git a/cpukit/score/cpu/i386/rtems/score/interrupts.h 
b/cpukit/score/cpu/i386/rtems/score/interrupts.h
index 9cf0c99..3a7971c 100644
--- a/cpukit/score/cpu/i386/rtems/score/interrupts.h
+++ b/cpukit/score/cpu/i386/rtems/score/interrupts.h
@@ -33,7 +33,7 @@ typedef int  (*rtems_raw_irq_is_enabled)  (const struct 
__rtems_raw_irq_connect_d
  * 
  */
 /**@{**/
-
+#if !defined(RTEMS_PARAVIRT)
 #define i386_disable_interrupts( _level ) \
   { \
 __asm__ volatile ( "pushf ; \
@@ -71,6 +71,13 @@ typedef int  (*rtems_raw_irq_is_enabled) (const struct 
__rtems_raw_irq_connect_d
 \
 _level = (_eflags & EFLAGS_INTR_ENABLE) ? 0 : 1; \
   } while (0)
+#else
+uint32_t i386_disable_interrupts( void );
+void i386_enable_interrupts(uint32_t level);
+void i386_flash_interrupts(uint32_t level);
+void i386_set_interrupt_level(uint32_t new_level);
+uint32_t i386_get_interrupt_level( void );
+#endif /* PARAVIRT */
 
 /** @} */
 
-- 
1.9.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH 2/7] i386: move idle thread into BSP layer

2016-02-15 Thread Gedare Bloom
---
 c/src/lib/libbsp/i386/pc386/Makefile.am   |  1 +
 c/src/lib/libbsp/i386/pc386/include/bsp.h |  3 +++
 c/src/lib/libbsp/i386/pc386/startup/bspidle.S | 19 +++
 cpukit/score/cpu/i386/cpu.c   |  8 
 cpukit/score/cpu/i386/rtems/score/cpu.h   |  2 +-
 5 files changed, 24 insertions(+), 9 deletions(-)
 create mode 100644 c/src/lib/libbsp/i386/pc386/startup/bspidle.S

diff --git a/c/src/lib/libbsp/i386/pc386/Makefile.am 
b/c/src/lib/libbsp/i386/pc386/Makefile.am
index ac07741..75a56c9 100644
--- a/c/src/lib/libbsp/i386/pc386/Makefile.am
+++ b/c/src/lib/libbsp/i386/pc386/Makefile.am
@@ -148,6 +148,7 @@ include_HEADERS += ../../i386/shared/comm/uart.h
 # startup
 libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
 libbsp_a_SOURCES += startup/bspgetworkarea.c
+libbsp_a_SOURCES += startup/bspidle.S
 libbsp_a_SOURCES += startup/bspstart.c
 libbsp_a_SOURCES += startup/bspcmdline.c
 libbsp_a_SOURCES += ../../shared/bspclean.c
diff --git a/c/src/lib/libbsp/i386/pc386/include/bsp.h 
b/c/src/lib/libbsp/i386/pc386/include/bsp.h
index d68af4d..cee5566 100644
--- a/c/src/lib/libbsp/i386/pc386/include/bsp.h
+++ b/c/src/lib/libbsp/i386/pc386/include/bsp.h
@@ -213,6 +213,9 @@ void rtems_irq_mngt_init(void);  /* from 
'irq_init.c' */
 } while ( 0 )
 #endif /* edison */
 
+void *bsp_idle_thread( uintptr_t ignored );
+#define BSP_IDLE_TASK_BODY bsp_idle_thread
+
 void kbd_reset_setup(char *str, int *ints);   /* from 'pc_keyb.c' */
 size_t read_aux(char * buffer, size_t count); /* from 'ps2_mouse.c'  */
 
diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspidle.S 
b/c/src/lib/libbsp/i386/pc386/startup/bspidle.S
new file mode 100644
index 000..740671a
--- /dev/null
+++ b/c/src/lib/libbsp/i386/pc386/startup/bspidle.S
@@ -0,0 +1,19 @@
+/*
+ * Idle Thread Body
+ *
+ * COPYRIGHT (c) 2016.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ *  http://www.rtems.org/license/LICENSE.
+ */
+
+#include 
+
+.p2align 4
+
+PUBLIC(bsp_idle_thread)
+SYM(bsp_idle_thread):
+hltloop: hlt
+  jmp hltloop
diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c
index 436c822..52eb511 100644
--- a/cpukit/score/cpu/i386/cpu.c
+++ b/cpukit/score/cpu/i386/cpu.c
@@ -116,14 +116,6 @@ uint32_t   _CPU_ISR_Get_level( void )
   return level;
 }
 
-void *_CPU_Thread_Idle_body( uintptr_t ignored )
-{
-  while(1){
-__asm__ volatile ("hlt");
-  }
-  return NULL;
-}
-
 struct Frame_ {
struct Frame_  *up;
uintptr_t   pc;
diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h 
b/cpukit/score/cpu/i386/rtems/score/cpu.h
index 5a8e5d6..2a1b95b 100644
--- a/cpukit/score/cpu/i386/rtems/score/cpu.h
+++ b/cpukit/score/cpu/i386/rtems/score/cpu.h
@@ -117,7 +117,7 @@ extern "C" {
  *  not provide one.
  */
 
-#define CPU_PROVIDES_IDLE_THREAD_BODYTRUE
+#define CPU_PROVIDES_IDLE_THREAD_BODYFALSE
 
 /*
  *  Define what is required to specify how the network to host conversion
-- 
1.9.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH 3/7] i386: remove redundant CPP defines

2016-02-15 Thread Gedare Bloom
---
 cpukit/score/cpu/i386/rtems/score/interrupts.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/cpukit/score/cpu/i386/rtems/score/interrupts.h 
b/cpukit/score/cpu/i386/rtems/score/interrupts.h
index 5ae172a..9cf0c99 100644
--- a/cpukit/score/cpu/i386/rtems/score/interrupts.h
+++ b/cpukit/score/cpu/i386/rtems/score/interrupts.h
@@ -72,9 +72,6 @@ typedef int  (*rtems_raw_irq_is_enabled)  (const struct 
__rtems_raw_irq_connect_d
 _level = (_eflags & EFLAGS_INTR_ENABLE) ? 0 : 1; \
   } while (0)
 
-#define _CPU_ISR_Disable( _level ) i386_disable_interrupts( _level )
-#define _CPU_ISR_Enable( _level ) i386_enable_interrupts( _level )
-
 /** @} */
 
 #endif
-- 
1.9.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH 6/7] i386 ..score/cpu.h: Fix spacing

2016-02-15 Thread Gedare Bloom
From: Joel Sherrill 

---
 cpukit/score/cpu/i386/rtems/score/cpu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h 
b/cpukit/score/cpu/i386/rtems/score/cpu.h
index 34845b0..18b63af 100644
--- a/cpukit/score/cpu/i386/rtems/score/cpu.h
+++ b/cpukit/score/cpu/i386/rtems/score/cpu.h
@@ -408,10 +408,10 @@ SCORE_EXTERN Context_Control_fp  _CPU_Null_fp_context;
 else  __asm__ volatile ( "sti" ); \
   }
 #else
-#define _CPU_ISR_Disable( _level ) _level = i386_disable_interrupts( )
+#define _CPU_ISR_Disable( _level ) _level = i386_disable_interrupts()
 #define _CPU_ISR_Enable( _level ) i386_enable_interrupts( _level )
 #define _CPU_ISR_Flash( _level ) i386_flash_interrupts( _level )
-#define _CPU_ISR_Set_level( _new_level ) i386_set_interrupt_level( _new_level)
+#define _CPU_ISR_Set_level( _new_level ) i386_set_interrupt_level(_new_level)
 #endif
 
 uint32_t   _CPU_ISR_Get_level( void );
-- 
1.9.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH 4/7] i386: relocate fatal halt to bsp layer

2016-02-15 Thread Gedare Bloom
---
 c/src/lib/libbsp/i386/pc386/Makefile.am  |  1 +
 c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c | 20 
 cpukit/score/cpu/i386/rtems/score/cpu.h  | 11 ++-
 3 files changed, 23 insertions(+), 9 deletions(-)
 create mode 100644 c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c

diff --git a/c/src/lib/libbsp/i386/pc386/Makefile.am 
b/c/src/lib/libbsp/i386/pc386/Makefile.am
index 75a56c9..1d52cf4 100644
--- a/c/src/lib/libbsp/i386/pc386/Makefile.am
+++ b/c/src/lib/libbsp/i386/pc386/Makefile.am
@@ -147,6 +147,7 @@ libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c \
 include_HEADERS += ../../i386/shared/comm/uart.h
 # startup
 libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
+libbsp_a_SOURCES += startup/bsp_fatal_halt.c
 libbsp_a_SOURCES += startup/bspgetworkarea.c
 libbsp_a_SOURCES += startup/bspidle.S
 libbsp_a_SOURCES += startup/bspstart.c
diff --git a/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c 
b/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c
new file mode 100644
index 000..c9830f6
--- /dev/null
+++ b/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c
@@ -0,0 +1,20 @@
+/**
+ *  COPYRIGHT (c) 2016.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.org/license/LICENSE.
+ */
+
+#include 
+
+void _CPU_Fatal_halt(uint32_t source, uint32_t error)
+{
+  uint32_t _error_lvalue = ( _error );
+  __asm__ volatile (
+ "cli ; movl %0,%%eax ; hlt"
+ : "=r" ((_error_lvalue))
+ : "0" ((_error_lvalue))
+  );
+}
diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h 
b/cpukit/score/cpu/i386/rtems/score/cpu.h
index 2a1b95b..3513650 100644
--- a/cpukit/score/cpu/i386/rtems/score/cpu.h
+++ b/cpukit/score/cpu/i386/rtems/score/cpu.h
@@ -529,15 +529,8 @@ uint32_t   _CPU_ISR_Get_level( void );
  *+ disable interrupts and halt the CPU
  */
 
-#define _CPU_Fatal_halt( _source, _error ) \
-  { \
-uint32_t _error_lvalue = ( _error ); \
-__asm__ volatile ( "cli ; \
-movl %0,%%eax ; \
-hlt" \
-: "=r" ((_error_lvalue)) : "0" ((_error_lvalue)) \
-); \
-  }
+extern void _CPU_Fatal_halt(uint32_t source, uint32_t error)
+  RTEMS_NO_RETURN;
 
 #endif /* ASM */
 
-- 
1.9.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH 1/7] version.c: Add space so printing is neater

2016-02-15 Thread Gedare Bloom
From: Joel Sherrill 

---
 c/src/support/version.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/support/version.c b/c/src/support/version.c
index a1ed752..4caf0bd 100644
--- a/c/src/support/version.c
+++ b/c/src/support/version.c
@@ -23,4 +23,4 @@
 #endif
 
 const char _RTEMS_version[] =
-  "rtems-" RTEMS_VERSION "(" CPU_NAME "/" CPU_MODEL_NAME "/" RTEMS_BSP ")";
+  "rtems-" RTEMS_VERSION " (" CPU_NAME "/" CPU_MODEL_NAME "/" RTEMS_BSP ")";
-- 
1.9.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH 7/7] i386: refactor libcpu/cpu.h into rtems/score/i386.h

2016-02-15 Thread Gedare Bloom
From: Joel Sherrill 

Fixes #2515.
---
 c/src/lib/libbsp/i386/pc386/include/bsp.h  |   2 +-
 c/src/lib/libbsp/i386/shared/irq/idt.c |   2 +-
 c/src/lib/libbsp/i386/shared/irq/irq_init.c|   2 +-
 .../libbsp/i386/shared/realmode_int/realmode_int.h |   2 +-
 c/src/lib/libbsp/i386/shared/smp/smp-imps.c|   2 +-
 c/src/lib/libcpu/i386/Makefile.am  |   4 +-
 c/src/lib/libcpu/i386/cache.c  |   4 +-
 c/src/lib/libcpu/i386/cpu.h| 475 -
 c/src/lib/libcpu/i386/displayCpu.c |   2 +-
 c/src/lib/libcpu/i386/page.c   |   3 +-
 c/src/lib/libcpu/i386/page.h   |  39 ++
 c/src/lib/libcpu/i386/preinstall.am|   6 +-
 cpukit/score/cpu/i386/rtems/score/cpu.h|   5 -
 cpukit/score/cpu/i386/rtems/score/i386.h   | 437 ++-
 14 files changed, 477 insertions(+), 508 deletions(-)
 delete mode 100644 c/src/lib/libcpu/i386/cpu.h
 create mode 100644 c/src/lib/libcpu/i386/page.h

diff --git a/c/src/lib/libbsp/i386/pc386/include/bsp.h 
b/c/src/lib/libbsp/i386/pc386/include/bsp.h
index cee5566..3d29e3e 100644
--- a/c/src/lib/libbsp/i386/pc386/include/bsp.h
+++ b/c/src/lib/libbsp/i386/pc386/include/bsp.h
@@ -57,7 +57,7 @@
 #include 
 #include 
 #include 
-#include 
+#include 
 #include 
 
 #ifdef __cplusplus
diff --git a/c/src/lib/libbsp/i386/shared/irq/idt.c 
b/c/src/lib/libbsp/i386/shared/irq/idt.c
index fc9364e..ee6f8e0 100644
--- a/c/src/lib/libbsp/i386/shared/irq/idt.c
+++ b/c/src/lib/libbsp/i386/shared/irq/idt.c
@@ -16,7 +16,7 @@
  *  http://www.rtems.org/license/LICENSE.
  */
 
-#include 
+#include 
 #include 
 
 static rtems_raw_irq_connect_data* raw_irq_table;
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq_init.c 
b/c/src/lib/libbsp/i386/shared/irq/irq_init.c
index 9bf9bc5..fe8d7e7 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq_init.c
+++ b/c/src/lib/libbsp/i386/shared/irq/irq_init.c
@@ -16,7 +16,7 @@
 
 #include 
 
-#include 
+#include 
 
 #include 
 #include 
diff --git a/c/src/lib/libbsp/i386/shared/realmode_int/realmode_int.h 
b/c/src/lib/libbsp/i386/shared/realmode_int/realmode_int.h
index a6b067d..e8a1e36 100644
--- a/c/src/lib/libbsp/i386/shared/realmode_int/realmode_int.h
+++ b/c/src/lib/libbsp/i386/shared/realmode_int/realmode_int.h
@@ -23,7 +23,7 @@
 #ifndef _REALMODE_INT_H
 #define _REALMODE_INT_H
 
-#include 
+#include 
 #include 
 
 #ifndef ASM /* ASM */
diff --git a/c/src/lib/libbsp/i386/shared/smp/smp-imps.c 
b/c/src/lib/libbsp/i386/shared/smp/smp-imps.c
index 158a45d..ca1a0f1 100644
--- a/c/src/lib/libbsp/i386/shared/smp/smp-imps.c
+++ b/c/src/lib/libbsp/i386/shared/smp/smp-imps.c
@@ -79,7 +79,7 @@
 #include 
 #include 
 #include 
-#include 
+#include 
 #include 
 
 extern void _pc386_delay(void);
diff --git a/c/src/lib/libcpu/i386/Makefile.am 
b/c/src/lib/libcpu/i386/Makefile.am
index 0869435..79797b5 100644
--- a/c/src/lib/libcpu/i386/Makefile.am
+++ b/c/src/lib/libcpu/i386/Makefile.am
@@ -6,7 +6,7 @@ include $(top_srcdir)/../../../automake/compile.am
 
 include_libcpudir = $(includedir)/libcpu
 
-include_libcpu_HEADERS = cpu.h cpuModel.h
+include_libcpu_HEADERS = page.h cpuModel.h
 include_libcpu_HEADERS += ../shared/include/cache.h
 include_libcpu_HEADERS += byteorder.h
 
@@ -22,7 +22,7 @@ score_rel_CPPFLAGS = $(AM_CPPFLAGS)
 score_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
 
 noinst_PROGRAMS += page.rel
-page_rel_SOURCES = page.c cpu.h
+page_rel_SOURCES = page.c page.h
 page_rel_CPPFLAGS = $(AM_CPPFLAGS)
 page_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
 
diff --git a/c/src/lib/libcpu/i386/cache.c b/c/src/lib/libcpu/i386/cache.c
index 66657ab..da31a38 100644
--- a/c/src/lib/libcpu/i386/cache.c
+++ b/c/src/lib/libcpu/i386/cache.c
@@ -3,9 +3,9 @@
  */
 
 #include 
-#include 
 #include "cache_.h"
-#include 
+#include 
+#include 
 
 void _CPU_disable_cache(void)
 {
diff --git a/c/src/lib/libcpu/i386/cpu.h b/c/src/lib/libcpu/i386/cpu.h
deleted file mode 100644
index c0c4756..000
--- a/c/src/lib/libcpu/i386/cpu.h
+++ /dev/null
@@ -1,475 +0,0 @@
-/*
- * @file cpu.h
- *
- *  This file contains definitions for data structure related
- *  to Intel system programming. More information can be found
- * on Intel site and more precisely in the following book :
- *
- * Pentium Processor familly
- * Developper's Manual
- *
- * Volume 3 : Architecture and Programming Manual
- *
- * Copyright (C) 1998  Eric Valette (vale...@crf.canon.fr)
- * Canon Centre Recherche France.
- *
- *  The license and distribution terms for this file may be
- *  found in the file LICENSE in this distribution or at
- *  http://www.rtems.org/license/LICENSE.
- */
-
-#ifndef _LIBCPU_i386_CPU_H
-#define _LIBCPU_i386_CPU_H
-
-#include 
-
-#ifndef ASM
-
-/*
- *  Interrupt Level Macros
- */
-#include 
-
-#include 
-
-/*
- *  Segment Access Routines
- *
- *  NOTE:  Unf

[PATCH 0/7] i386 paravirtualization

2016-02-15 Thread Gedare Bloom
These patches prepare i386 for paravirtualization by moving
privileged and sensitive instructions into the BSP. The pc386
should operate as before, and no BSP is currently being
provided for any particular hypervisor. We attempted to make
the i386 similar to the paravirtualized sparc. Note that
a paravirtualized i386 BSP still requires additional changes
to newlib to deal with the use of cli/sti in longjmp, but
otherwise should work if the BSP itself avoids privileged
and sensitive instructions.

Gedare Bloom (4):
  i386: move idle thread into BSP layer
  i386: remove redundant CPP defines
  i386: relocate fatal halt to bsp layer
  i386: prepare for paravirtualized interrupts

Joel Sherrill (3):
  version.c: Add space so printing is neater
  i386 ..score/cpu.h: Fix spacing
  i386: refactor libcpu/cpu.h into rtems/score/i386.h

 c/src/lib/libbsp/i386/pc386/Makefile.am|   2 +
 c/src/lib/libbsp/i386/pc386/include/bsp.h  |   5 +-
 .../lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c |  19 +
 c/src/lib/libbsp/i386/pc386/startup/bspidle.S  |  19 +
 c/src/lib/libbsp/i386/shared/irq/idt.c |   2 +-
 c/src/lib/libbsp/i386/shared/irq/irq_init.c|   2 +-
 .../libbsp/i386/shared/realmode_int/realmode_int.h |   2 +-
 c/src/lib/libbsp/i386/shared/smp/smp-imps.c|   2 +-
 c/src/lib/libcpu/i386/Makefile.am  |   4 +-
 c/src/lib/libcpu/i386/cache.c  |   4 +-
 c/src/lib/libcpu/i386/cpu.h| 475 -
 c/src/lib/libcpu/i386/displayCpu.c |   2 +-
 c/src/lib/libcpu/i386/page.c   |   3 +-
 c/src/lib/libcpu/i386/page.h   |  39 ++
 c/src/lib/libcpu/i386/preinstall.am|   6 +-
 c/src/support/version.c|   2 +-
 cpukit/score/cpu/i386/cpu.c|  12 +-
 cpukit/score/cpu/i386/rtems/score/cpu.h|  25 +-
 cpukit/score/cpu/i386/rtems/score/i386.h   | 437 ++-
 cpukit/score/cpu/i386/rtems/score/interrupts.h |  12 +-
 20 files changed, 543 insertions(+), 531 deletions(-)
 create mode 100644 c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c
 create mode 100644 c/src/lib/libbsp/i386/pc386/startup/bspidle.S
 delete mode 100644 c/src/lib/libcpu/i386/cpu.h
 create mode 100644 c/src/lib/libcpu/i386/page.h

-- 
1.9.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: Warning: Subdir-objects is disabled

2016-02-15 Thread punit vara
On Mon, Feb 15, 2016 at 6:56 PM, Marcos Díaz <
marcos.d...@tallertechnologies.com> wrote:

> You should use the toolchain built with the source builder to do the
> bootstrapping
>
> On Mon, Feb 15, 2016 at 10:24 AM, Marcos Díaz <
> marcos.d...@tallertechnologies.com> wrote:
>
>> Check your automake and autoconf versions, I think they must be automake
>> 1.12.6 and autoconf 2.69 The bootstrapping should throw you no warnings
>>
>> On Mon, Feb 15, 2016 at 10:21 AM, punit vara  wrote:
>>
>>> Today I was trying to bootstrap rtems. I have cloned repo.
>>>
>>> git clone git://git.rtems.org/rtems.git
>>>
>>> When I perform ./bootstrap It generates lots of warning
>>>
>>> Makefile.am:24: warning: source file 'start/start.S' is in a
>>> subdirectory,
>>> Makefile.am:24: but option 'subdir-objects' is disabled
>>>
>>> I have found solution that I should add
>>>
>>> AUTOMAKE_OPTIONS = subdir-objects
>>>
>>> at top of Makefile.am But still I am getting warnings. What could be
>>> the possible reason to stop this warnings. ? After that even I
>>> modified configure.ac
>>>
>>> AM_INIT_AUTOMAKE([subdir-objects])
>>>
>>> Any suggestions please?
>>> ___
>>> devel mailing list
>>> devel@rtems.org
>>> http://lists.rtems.org/mailman/listinfo/devel
>>>
>>
>>
>>
>> --
>>
>> __
>>
>> 
>>
>>
>> Marcos Díaz
>>
>> Software Engineer
>>
>>
>> San Lorenzo 47, 3rd Floor, Office 5
>>
>> Córdoba, Argentina
>>
>>
>> Phone: +54 351 4217888 / +54 351 4218211/ +54 351 7617452
>>
>> Skype: markdiaz22
>>
>>
>
>
> --
>
> __
>
> 
>
>
> Marcos Díaz
>
> Software Engineer
>
>
> San Lorenzo 47, 3rd Floor, Office 5
>
> Córdoba, Argentina
>
>
> Phone: +54 351 4217888 / +54 351 4218211/ +54 351 7617452
>
> Skype: markdiaz22
>
> Thanks. Done :-)
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Regarding GSOC 2016 BSP for BBB

2016-02-15 Thread punit vara
On Mon, Feb 15, 2016 at 9:46 PM, Joel Sherrill  wrote:
>
>
> On Mon, Feb 15, 2016 at 7:31 AM, punit vara  wrote:
>>
>> I am in my final year of Master of embedded system course. Last year
>> only I came to know about GSOC .I came to know about amazing rtos
>> rtems while searching for embedded system projects. I was bit late to
>> proceed proposal last year as I was not aware that much.This could be
>> my last chance to get selected for GSOC 2016. I am interested for
>> developing BSP for BBB as I have beaglebone black. I have read some of
>> peripheral need support.   Could I take this project this year ? If
>> yes , any suggestions for improving my chance to get selected this
>> year are welcome.
>>
>
> I wasn't the mentor for the BB and Pi tasks last year although I tracked
> and helped answer questions.
>
> The BBB has a BSP with a number of the peripherals completed. I think you
> need to review the current BSP to see what is missing. Looking at the status
> reports from the projects last year will also help.
>
> I am honestly unsure of what remains.
>
> --joel
>
>>
>> Regards,
>> Punit Vara
>> ___
>> devel mailing list
>> devel@rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>
>
Last year Ketul has done BSP for BBB who is good friend of mine. He
has done BSP for GPIO and ADC. He told me apart from this most of
peripheral need support and also suggested me to ask Ben about this.
@Ben Can you please suggest me what further BSP idea I can take for
GSOC 2016 ? .Also please suggest me some reading so I can improve my
chances this time to get accepted in gsoc 2016. Yet I am going through
RTEMS docs provided on official site.But you may particular point me
out.
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel