All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Stephan Zimmermann <s.zimmermann@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] fata: removing non-linked element...
Date: Fri, 16 Feb 2007 18:06:27 +0100	[thread overview]
Message-ID: <45D5E493.4080405@domain.hid> (raw)
In-Reply-To: <45D59F98.8020006@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1638 bytes --]

Stephan Zimmermann wrote:
> ...
> P.S.: For running the attaced program, you need a
> magic-parallel-port-interrupt-loopback-device. (Connecting pins 9 and 10
> of the parallel port will do the trick.)

...

> ------------------------------------------------------------------------
> 
> #include <iostream>
> #include <sys/mman.h>
> #include <assert.h>
> #include "native/task.h"
> #include "native/timer.h"
> #include "native/queue.h"
> #include "native/intr.h"
> 
> #include <signal.h>
> #include <sys/io.h>
> 
> RT_TASK maintask;
> RT_TASK inttask;
> RT_TASK intcreatortask;
> RT_TASK queue_endtask;
> 
> RT_INTR lptint;
> 
> #define LPT_BASE		0x378
> #define LPT_INT			7
> 
> #define PERIOD_TIME 	10
> #define TIMEBASE 		10000

...

> 
> int main(void){
> 	std::cout << "xenomai interrupt test" << std::endl;
> 	mlockall(MCL_CURRENT | MCL_FUTURE);
> 	
> 	signal(SIGTERM,  catch_signal);
> 	signal(SIGKILL,  catch_signal);
> 	signal(SIGQUIT,  catch_signal);
> 	signal(SIGINT ,  catch_signal);	
> 	
> 	if (iopl(3)) {  
> 		printf("iopl err\n");
> 		exit(1);
> 	}
> 	
> 	int err;
> 
> 	err = rt_task_shadow (&maintask,"maintask",10,0);
> 	std::cout << "task shadow:" << err << std::endl;
> 	
> 	err = rt_timer_set_mode(TIMEBASE);

Do you know that you are requesting a timer tick rate of 100 kHz? I just
managed to lock up my poor 266 MHz board running your code. :)

Maybe we are seeing all this weird behaviour due to kernel stack
overruns. Try to switch on CONFIG_DEBUG_STACKOVERFLOW and
CONFIG_DEBUG_STACK_USAGE.

/me now watching what happens at 10 kHz...

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2007-02-16 17:06 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-09 12:12 [Xenomai-help] fata: removing non-linked element Stephan Zimmermann
2007-02-09 12:28 ` Jan Kiszka
2007-02-09 14:04   ` Stephan Zimmermann
2007-02-13 13:36   ` Stephan Zimmermann
2007-02-13 13:42   ` Stephan Zimmermann
2007-02-13 14:07     ` Jan Kiszka
2007-02-13 14:25       ` Philippe Gerum
2007-02-13 14:28         ` Jan Kiszka
2007-02-13 14:47           ` Philippe Gerum
2007-02-13 16:55           ` Philippe Gerum
2007-02-13 18:17             ` Jan Kiszka
2007-02-13 18:58               ` Philippe Gerum
2007-02-16 12:12                 ` Stephan Zimmermann
2007-02-16 17:06                   ` Jan Kiszka [this message]
2007-02-16 17:58                     ` Jan Kiszka
2007-02-16 18:15                       ` Philippe Gerum
2007-02-16 18:25                         ` Jan Kiszka
2007-02-16 18:34                           ` Philippe Gerum
2007-02-16 18:38                             ` Jan Kiszka
2007-02-16 18:47                               ` Philippe Gerum
2007-02-22 13:27                                 ` Stephan Zimmermann
2007-02-22 13:50                                   ` Jan Kiszka
2007-02-22 15:49                                     ` Stephan Zimmermann
2007-02-16 17:11                   ` Jan Kiszka
2007-02-09 13:44 ` Gilles Chanteperdrix
2007-02-09 14:08   ` Stephan Zimmermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45D5E493.4080405@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=s.zimmermann@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.