Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component shift;
- pin in u32 length;
- pin out u32 dataout;
- option singleton;
- option extra_setup;
- option extra_cleanup;
- function write "Send data over rtnet";
- license "GPL";
- author "Klemen";
- ;;
- #include "rtapi_math.h"
- EXTRA_SETUP()
- {
- u32 temp0, temp1;
- temp0 = length;
- temp0 = temp0 >> 8;
- temp1 = length;
- temp1 = temp1 << 8;
- rtapi_print_msg(RTAPI_MSG_ERR,"ahift: %d >> %d << %d\n",length, temp0, temp1);
- return 0;
- }
- EXTRA_CLEANUP()
- {
- }
- FUNCTION(write)
- {
- dataout = 0x00112233;
- }
- error:
- Jun 1 23:29:04 klemen-lucija1 kernel: [ 60.485227] RTAI[usi]: enabled.
- Jun 1 23:29:04 klemen-lucija1 kernel: [ 60.564597] RTAI[math]: loaded.
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.026968] *pde = cda96067
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.026987] Modules linked in: shift(+) siggen threads hal_lib rtapi rtai_math rtai_sem rtai_fifos rtai_sched rtai_hal binfmt_misc snd_hda_codec_realtek fbcon tileblit font bitblit softcursor vga16fb vgastate snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq joydev i915 drm_kms_helper snd_timer snd_seq_device ppdev pl2303 drm i2c_algo_bit snd parport_pc parport usbhid intel_agp video usbserial hid soundcore snd_page_alloc output agpgart 8139too 8139cp r8169 mii
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027077]
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027084] Pid: 1481, comm: insmod Not tainted (2.6.32-122-rtai #rtai)
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027091] EIP: 0060:[<f863e072>] EFLAGS: 00010246 CPU: 0
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027100] EIP is at init_module+0x4b/0x185 [shift]
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027107] EAX: 00000000 EBX: f9bbf120 ECX: 00000000 EDX: f9bbf000
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027114] ESI: f863e218 EDI: f9bbf12c EBP: f4a31f5c ESP: f4a31f10
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027121] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027145] 00000000 f863e218 f4a31f28 00000001 00000000 c071e9c0 00000000 00000000
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027163] <0> f4a31f38 c019b157 f4a31f54 c056c373 f863e218 00000001 c071d3b0 00000001
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027183] <0> 3cff7263 fffffffc 00000000 f4a31f88 c0101041 f863e218 c071d3c0 fffffffc
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027223] [<c019b157>] ? tracepoint_module_notify+0x27/0x30
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027237] [<c056c373>] ? notifier_call_chain+0x43/0x60
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027249] [<c0101041>] ? do_one_initcall+0x31/0x1b0
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027260] [<f863e027>] ? init_module+0x0/0x185 [shift]
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027273] [<c0179781>] ? sys_init_module+0xb1/0x220
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027285] [<c010340d>] ? syscall_call+0x7/0xb
- Jun 1 23:29:13 klemen-lucija1 kernel: [ 70.027399] ---[ end trace 03917a607592a84a ]---
- klemen@klemen-lucija1:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement