2013-02-11T01:42:28 *** sebhub has joined #rtems 2013-02-11T01:43:01 good morning 2013-02-11T01:51:54 *** arvind_khadri has joined #rtems 2013-02-11T02:33:44 *** MegaAlex|away is now known as MegaAlex 2013-02-11T05:28:59 *** MegaAlex is now known as MegaAlex|away 2013-02-11T06:52:34 *** sevikkk has quit IRC (Read error: Connection reset by peer) 2013-02-11T06:53:34 *** sevikkk has joined #rtems 2013-02-11T07:47:47 *** arvind_khadri has quit IRC (Ping timeout: 255 seconds) 2013-02-11T07:51:11 *** gedare has joined #rtems 2013-02-11T09:06:59 *** peerst has quit IRC (Quit: peerst) 2013-02-11T09:07:06 *** sebhub has quit IRC (Ping timeout: 276 seconds) 2013-02-11T09:18:20 *** peerst has joined #rtems 2013-02-11T11:42:54 *** MegaAlex|away is now known as MegaAlex 2013-02-11T14:54:48 *** gedare has quit IRC (Quit: Leaving) 2013-02-11T17:23:15 *** MegaAlex is now known as MegaAlex|away 2013-02-11T22:47:22 *** kiwichris_ has quit IRC (Quit: This computer has gone to sleep) 2013-02-11T23:21:58 *** kiwichris has joined #rtems 2013-02-12T00:16:17 *** sevikkk has quit IRC (Read error: Connection reset by peer) 2013-02-12T00:17:09 *** sevikkk has joined #rtems 2013-02-12T00:39:07 *** kiwichris has quit IRC (Read error: Connection reset by peer) 2013-02-12T00:53:34 *** kiwichris has joined #rtems 2013-02-12T01:44:50 *** sebhub has joined #rtems 2013-02-12T01:45:50 good morning 2013-02-12T02:38:28 *** MegaAlex|away is now known as MegaAlex 2013-02-12T04:37:50 *** MegaAlex is now known as MegaAlex|away 2013-02-12T06:46:03 *** arvind_khadri has joined #rtems 2013-02-12T07:01:23 *** arvind_khadri has quit IRC (Remote host closed the connection) 2013-02-12T07:02:30 *** shineworld has joined #rtems 2013-02-12T07:51:03 *** gedare has joined #rtems 2013-02-12T07:53:02 *** shineworld has left #rtems ("Leaving") 2013-02-12T08:19:28 hi sebhub 2013-02-12T08:19:55 is it ok to cast const void* to const uintptr_t? 2013-02-12T08:20:45 const void *foo = 0xfeaf1234; const uintptr_t bar = (const uintptr_t) foo; 2013-02-12T08:21:07 seems right to me, hmm 2013-02-12T08:21:13 i don't do enough with const ;) 2013-02-12T08:23:10 seems unnecessary... i must think more! 2013-02-12T08:40:48 yes, this is ok, its also one way to get rid of the const away cast warning 2013-02-12T08:56:02 it won't work with the alignment macro though because I have to modify the uintptr_t 2013-02-12T08:56:10 alignment routine, rather. 2013-02-12T08:56:25 maybe i'm missing something obvious 2013-02-12T08:56:41 RTEMS_INLINE_ROUTINE const void *_Addresses_Align_up_immutable( 2013-02-12T08:56:41 const void *address, 2013-02-12T08:56:41 size_t alignment 2013-02-12T08:56:41 ) 2013-02-12T08:56:41 { 2013-02-12T08:56:42 if ( alignment == 0 ) { 2013-02-12T08:56:44 return address; 2013-02-12T08:56:46 } 2013-02-12T08:56:48 return (const void*) 2013-02-12T08:56:50 (((uintptr_t)address + (alignment - 1)) & ~(alignment - 1)); 2013-02-12T08:56:52 } 2013-02-12T08:57:25 that is probably going to give me a const cast warning 2013-02-12T08:58:02 no, it would not give a warning, but I think now that the immutable versions are not useful 2013-02-12T08:58:08 ok 2013-02-12T08:58:21 yeah i'm not sure with alignment 2013-02-12T08:59:35 I would avoid functions with more than one return path (MISRA-C and JSF++ AV) 2013-02-12T08:59:47 i see 2013-02-12T08:59:59 just in case we use this some time in the future 2013-02-12T09:00:18 gotcha... that'll be a significant rewrite ;) 2013-02-12T09:00:32 but hey, if someone wants to pay for it, more power to them. 2013-02-12T09:00:51 do they permit forward jumps (goto)? 2013-02-12T09:01:00 i would not rewrite existing code 2013-02-12T09:01:12 not that i plan to use one here, just curio0us 2013-02-12T09:02:31 ok i will eliminate the const version and try for one return path 2013-02-12T09:02:50 it is easy enough to add const version later if needed. 2013-02-12T09:02:57 in AV Rule 189. 2013-02-12T09:02:59 AV Rule 189 (MISRA Rule 56) 2013-02-12T09:03:16 ok 2013-02-12T09:03:23 goto may be used to break out of multiple nested loops 2013-02-12T09:03:35 it don't know if it is allowed for clean up code 2013-02-12T09:03:58 some of the misra rules are quite stupid 2013-02-12T09:04:09 yes... 2013-02-12T09:04:21 i read a nice article once about some of them 2013-02-12T09:04:26 i have never had to interact with them yet 2013-02-12T09:04:34 the JSF++ AV standard is really good, but it is C++ 2013-02-12T09:05:22 sometimes i wonder if it would make sense to do more in RTEMS with C++, but probably not... too much legacy to interact with 2013-02-12T09:05:33 and too many weird C++ quirks. 2013-02-12T09:06:02 c++ exceptions need quite a lot run-time support 2013-02-12T09:06:08 oh right 2013-02-12T09:06:12 that was the other thought I had. 2013-02-12T09:06:33 apart from that c++ is fine even for small targets 2013-02-12T09:06:40 RTEMS_INLINE_ROUTINE void *_Addresses_Align_up( 2013-02-12T09:06:40 void *address, 2013-02-12T09:06:40 size_t alignment 2013-02-12T09:06:40 ) 2013-02-12T09:06:40 { 2013-02-12T09:06:41 if ( alignment != 0 ) { 2013-02-12T09:06:43 address = (void*)(((uintptr_t)address + (alignment - 1)) & ~(alignment - 1)); 2013-02-12T09:06:45 } 2013-02-12T09:06:47 return address; 2013-02-12T09:06:49 } 2013-02-12T09:07:01 the const version would need a little more finesse 2013-02-12T09:07:11 but i think that should be "safe" for use 2013-02-12T09:07:39 i would omit the const version 2013-02-12T09:07:39 we can replace the alignment macros in the rbheap with this... i think i saw alignment some other places too 2013-02-12T09:07:42 i will 2013-02-12T09:07:48 i just mean if anyone needs one later. 2013-02-12T09:07:53 ok 2013-02-12T09:09:04 maybe we should name it _Addresses_Align_up_by_power_of_two() and omit the alignment == 0 test 2013-02-12T09:09:21 becaus aligment == 3 is also not a valid input 2013-02-12T09:09:43 we let some arch / cpu define CPU_ALIGNMENT and similar macros with a value of 0 2013-02-12T09:09:51 a couple of them do it 2013-02-12T09:10:04 hm, i think this is a bug 2013-02-12T09:10:07 in reality it probably means alignment of 1 2013-02-12T09:10:09 it should be 1 2013-02-12T09:10:18 let me check if they still exist 2013-02-12T09:10:24 i recall this from ~2 years ago 2013-02-12T09:10:52 ... 2013-02-12T09:11:29 cpukit/score/cpu/no_cpu/rtems/score/cpu.h:#define CPU_STACK_ALIGNMENT 0 2013-02-12T09:11:30 cpukit/score/cpu/avr/rtems/score/cpu.h:#define CPU_STACK_ALIGNMENT 0 2013-02-12T09:11:32 cpukit/score/cpu/m32c/rtems/score/cpu.h:#define CPU_STACK_ALIGNMENT 0 2013-02-12T09:11:34 cpukit/score/cpu/m32r/rtems/score/cpu.h:#define CPU_STACK_ALIGNMENT 0 2013-02-12T09:11:35 cpukit/score/cpu/m68k/rtems/score/cpu.h:#define CPU_STACK_ALIGNMENT 0 2013-02-12T09:11:37 we should fix this 2013-02-12T09:11:39 ok 2013-02-12T09:11:55 i'll file a PR 2013-02-12T09:12:44 i will just send a patch to rtems-devel 2013-02-12T09:12:57 ok good 2013-02-12T09:13:16 then i can eliminate this check for 0 2013-02-12T09:13:27 we will assume a power-of-2 i don't think the name is required. there is a note in the doc 2013-02-12T09:13:41 ok 2013-02-12T09:24:04 sebhub: is the rbheap align_up and align_down alignment a power-of-two? 2013-02-12T09:25:06 no, this is arbitrary 2013-02-12T09:25:13 ok. 2013-02-12T09:26:11 do you prepare a patch for the CPU_STACK_ALIGNMENT? 2013-02-12T09:26:19 if not I will do this 2013-02-12T09:29:06 hm, the CPU_STACK_ALIGNMENT is not really a problem since we use CPU_ALIGMENT in the addresses functions 2013-02-12T09:29:35 i did not 2013-02-12T09:29:44 yeah i don't see a problem now 2013-02-12T09:29:52 i think there used to be some architectures with CPU_ALIGNMENT of 0 2013-02-12T09:29:56 but they maybe got changed 2013-02-12T09:30:11 my simple grep doesn't reveal one 2013-02-12T09:30:39 ok 2013-02-12T09:30:53 i would use uintptr_t one = 1 ... (aligment - one) just to make sure the integer types are ok 2013-02-12T09:31:06 ah, ok 2013-02-12T09:31:11 good point 2013-02-12T09:39:05 updated 2013-02-12T09:41:20 and i've just about consumed my RTEMS quota for the week ;) 2013-02-12T09:41:51 thanks 2013-02-12T10:34:53 *** sebhub has quit IRC (Remote host closed the connection) 2013-02-12T11:31:45 *** MegaAlex|away is now known as MegaAlex 2013-02-12T13:55:27 *** gedare has quit IRC (Ping timeout: 252 seconds) 2013-02-12T16:43:36 *** MegaAlex is now known as MegaAlex|away 2013-02-12T17:33:33 *** gedare has joined #rtems 2013-02-12T17:53:29 *** gedare has quit IRC (Ping timeout: 255 seconds) 2013-02-12T18:07:24 *** juli1 has quit IRC (Ping timeout: 264 seconds) 2013-02-12T18:57:21 *** gedare has joined #rtems 2013-02-12T19:07:46 *** gedare has quit IRC (Ping timeout: 244 seconds) 2013-02-12T23:40:44 *** arvind_khadri has joined #rtems 2013-02-12T23:41:38 *** arvind_khadri has joined #rtems 2013-02-13T01:22:36 *** sebhub has joined #rtems 2013-02-13T01:22:47 good morning 2013-02-13T02:25:27 *** MegaAlex|away is now known as MegaAlex 2013-02-13T03:17:38 sebhub, added support for the NIOS2 to the Source Builder. It build Altera 4.11 tools. To use .. 2013-02-13T03:17:50 ../source-builder/sb-set-builder --log=l.txt --prefix=$HOME/development/rtems/4.11 4.11/rtems-nios2 2013-02-13T04:19:38 this is cool 2013-02-13T04:21:23 i just check the nios2 support in binutils, i hope they fixed the 64-bit host bug 2013-02-13T04:37:09 nice, this bug is fixed 2013-02-13T05:45:34 is that in 2.22 or something later ? 2013-02-13T05:58:55 it is from 2013-02-06, so brand new 2013-02-13T06:14:17 *** monstr__ has joined #rtems 2013-02-13T06:16:32 *** peerst has quit IRC (Ping timeout: 246 seconds) 2013-02-13T06:17:18 *** peerst has joined #rtems 2013-02-13T06:40:14 *** peerst has quit IRC (Ping timeout: 272 seconds) 2013-02-13T06:47:08 *** lcpfnvcy has quit IRC (Ping timeout: 255 seconds) 2013-02-13T06:48:09 *** peerst has joined #rtems 2013-02-13T06:48:44 *** lcpfnvcy has joined #rtems 2013-02-13T10:17:19 *** sebhub has quit IRC (Remote host closed the connection) 2013-02-13T10:36:04 *** monstr__ has quit IRC (Read error: Operation timed out) 2013-02-13T10:39:22 *** arvind_khadri has quit IRC (Read error: Operation timed out) 2013-02-13T11:03:40 *** DrJoel has joined #rtems 2013-02-13T12:24:46 *** peerst has quit IRC (Ping timeout: 272 seconds) 2013-02-13T12:41:32 *** peerst has joined #rtems 2013-02-13T12:49:42 *** monstr__ has joined #rtems 2013-02-13T13:23:23 *** DrJoel has quit IRC (Ping timeout: 245 seconds) 2013-02-13T13:23:39 *** arvind_khadri has joined #rtems 2013-02-13T13:25:01 *** monstr__ has quit IRC (Read error: Operation timed out) 2013-02-13T14:42:23 *** gedare has joined #rtems 2013-02-13T14:59:26 *** gedare has quit IRC (Ping timeout: 255 seconds) 2013-02-13T15:49:10 *** gedare has joined #rtems 2013-02-13T17:33:06 *** MegaAlex is now known as MegaAlex|away 2013-02-13T19:48:46 *** gedare has quit IRC (Ping timeout: 240 seconds) 2013-02-13T22:41:47 *** kiwichris has quit IRC (Quit: This computer has gone to sleep) 2013-02-13T22:55:26 *** arvind_khadri has quit IRC (Ping timeout: 245 seconds) 2013-02-13T23:11:55 *** kiwichris has joined #rtems 2013-02-13T23:32:36 *** kiwichris has quit IRC (Quit: This computer has gone to sleep) 2013-02-14T00:01:58 *** kiwichris has joined #rtems 2013-02-14T00:15:41 *** monstr__ has joined #rtems 2013-02-14T00:33:37 *** arvind_khadri has joined #rtems 2013-02-14T00:46:42 *** the9a3eedi has joined #rtems 2013-02-14T00:56:16 *** the9a3eedi has quit IRC (Ping timeout: 240 seconds) 2013-02-14T01:59:05 *** the9a3eedi has joined #rtems 2013-02-14T02:03:40 *** sebhub has joined #rtems 2013-02-14T02:05:31 good morning 2013-02-14T02:17:37 morning 2013-02-14T02:32:25 sebhub, hi 2013-02-14T02:32:42 have moxie and microblaze in the Source Builder now 2013-02-14T02:33:15 *** MegaAlex|away is now known as MegaAlex 2013-02-14T02:53:30 *** arvind_khadri has quit IRC (Ping timeout: 264 seconds) 2013-02-14T03:06:08 *** the9a3eedi has quit IRC (Read error: Connection reset by peer) 2013-02-14T05:25:44 *** MegaAlex is now known as MegaAlex|away 2013-02-14T06:06:55 *** lcpfnvcy has quit IRC (Ping timeout: 260 seconds) 2013-02-14T06:08:48 *** lcpfnvcy has joined #rtems 2013-02-14T06:15:39 *** sebhub has quit IRC (Remote host closed the connection) 2013-02-14T06:18:18 *** sebhub has joined #rtems 2013-02-14T06:48:25 *** arvind_khadri has joined #rtems 2013-02-14T08:58:53 *** arvind_khadri has quit IRC (Ping timeout: 255 seconds) 2013-02-14T09:15:59 *** gedare has joined #rtems 2013-02-14T09:59:42 *** gedare_ has joined #rtems 2013-02-14T10:00:49 *** gedare_ has quit IRC (Client Quit) 2013-02-14T10:23:45 *** monstr__ has quit IRC (Ping timeout: 240 seconds) 2013-02-14T10:24:10 *** monstr__ has joined #rtems 2013-02-14T10:32:49 *** monstr__ has quit IRC (Read error: Operation timed out) 2013-02-14T11:05:13 *** sebhub has quit IRC (Remote host closed the connection) 2013-02-14T11:36:45 *** MegaAlex|away is now known as MegaAlex 2013-02-14T17:05:08 *** MegaAlex is now known as MegaAlex|away 2013-02-14T18:23:48 *** the9a3eedi has joined #rtems 2013-02-14T19:46:38 *** gedare has quit IRC (Read error: Operation timed out) 2013-02-14T22:46:09 *** the9a3eedi has quit IRC (Read error: Connection reset by peer) 2013-02-15T00:38:00 *** arvind_khadri has joined #rtems 2013-02-15T00:38:01 *** monstr__ has joined #rtems 2013-02-15T01:48:44 *** MegaAlex|away is now known as MegaAlex 2013-02-15T02:02:52 *** sebhub has joined #rtems 2013-02-15T02:03:35 good morning 2013-02-15T02:30:12 morning :) 2013-02-15T04:11:04 *** monstr__ has quit IRC (Ping timeout: 252 seconds) 2013-02-15T04:43:16 *** monstr__ has joined #rtems 2013-02-15T05:29:25 *** MegaAlex is now known as MegaAlex|away 2013-02-15T08:14:33 *** gedare has joined #rtems 2013-02-15T08:30:56 *** gedare has quit IRC (Read error: Operation timed out) 2013-02-15T09:45:02 *** arvind_khadri has quit IRC (Ping timeout: 252 seconds) 2013-02-15T10:03:50 *** monstr__ has quit IRC (Remote host closed the connection) 2013-02-15T10:47:54 *** MegaAlex|away is now known as MegaAlex 2013-02-15T11:18:01 *** sebhub has quit IRC (Remote host closed the connection) 2013-02-15T12:34:25 *** gedare has joined #rtems 2013-02-15T15:25:55 *** gedare has quit IRC (Ping timeout: 248 seconds) 2013-02-15T16:49:23 *** gedare has joined #rtems 2013-02-15T17:12:52 *** MegaAlex is now known as MegaAlex|away 2013-02-15T17:22:23 *** gedare has quit IRC (Ping timeout: 260 seconds) 2013-02-15T22:03:54 *** xunil has joined #rtems 2013-02-15T22:33:41 *** xunil__ has joined #rtems 2013-02-15T22:34:06 *** xunil__ has quit IRC (Client Quit) 2013-02-16T00:36:15 hii room 2013-02-16T00:36:24 what is the git repo for rtems4.11 2013-02-16T00:36:46 I have installed powerpc rtems prebuilt tools 2013-02-16T00:37:09 can you please tell me rtems 4.11 branch 2013-02-16T00:37:59 hello ?? 2013-02-16T01:21:25 *** MegaAlex|away is now known as MegaAlex 2013-02-16T02:18:54 *** MegaAlex is now known as MegaAlex|away 2013-02-16T02:19:19 *** MegaAlex|away is now known as MegaAlex 2013-02-16T02:40:30 *** sevikkk has quit IRC (Ping timeout: 256 seconds) 2013-02-16T03:12:15 *** MegaAlex is now known as MegaAlex|away 2013-02-16T03:16:22 *** MegaAlex|away is now known as MegaAlex 2013-02-16T03:22:27 *** sevikkk has joined #rtems 2013-02-16T03:33:06 *** xunil has quit IRC (Read error: Connection reset by peer) 2013-02-16T03:57:49 *** MegaAlex is now known as MegaAlex|away 2013-02-16T04:19:23 *** MegaAlex|away is now known as MegaAlex 2013-02-16T08:03:54 *** gedare has joined #rtems 2013-02-16T08:34:29 *** gedare_ has joined #rtems 2013-02-16T13:45:31 *** lcpfnvcy has quit IRC (Ping timeout: 260 seconds) 2013-02-16T14:00:12 *** lcpfnvcy has joined #rtems 2013-02-16T17:20:46 *** gedare has quit IRC (Ping timeout: 252 seconds) 2013-02-16T18:11:54 *** MegaAlex is now known as MegaAlex|away 2013-02-16T21:09:16 *** kiwichris has quit IRC (Ping timeout: 276 seconds) 2013-02-16T21:14:54 *** kiwichris has joined #rtems 2013-02-17T03:36:49 *** MegaAlex|away is now known as MegaAlex 2013-02-17T05:33:08 *** MegaAlex is now known as MegaAlex|away 2013-02-17T05:33:19 *** MegaAlex|away is now known as MegaAlex 2013-02-17T08:01:08 *** kiwichris has quit IRC (Ping timeout: 252 seconds) 2013-02-17T08:07:46 *** kiwichris has joined #rtems 2013-02-17T09:49:45 *** gedare has joined #rtems 2013-02-17T11:44:12 *** arvind_khadri has joined #rtems 2013-02-17T17:32:06 *** gedare has quit IRC (Ping timeout: 245 seconds) 2013-02-17T18:14:31 *** MegaAlex is now known as MegaAlex|away 2013-02-17T19:10:59 *** sevikkk has quit IRC (Ping timeout: 255 seconds) 2013-02-17T19:13:27 *** sevikkk has joined #rtems 2013-02-17T22:05:30 *** kiwichris has quit IRC (Quit: This computer has gone to sleep) 2013-02-17T22:46:16 *** arvind_khadri has quit IRC (Ping timeout: 256 seconds) 2013-02-17T23:09:21 *** kiwichris has joined #rtems 2013-02-17T23:16:42 *** kiwichris has quit IRC (Quit: This computer has gone to sleep) 2013-02-17T23:54:19 *** kiwichris has joined #rtems