rtos: removed chSysInit from detection of ChibiOS (#121)
[openocd.git] / src / rtos / linux_header.h
1 #ifndef OPENOCD_RTOS_LINUX_HEADER_H
2 #define OPENOCD_RTOS_LINUX_HEADER_H
3
4 /* gdb script to update the header file
5 according to kernel version and build option
6 before executing function awareness
7 kernel symbol must be loaded : symbol vmlinux
8
9 define awareness
10 set logging off
11 set logging file linux_header.h
12 set logging on
13
14 printf "#define QAT %p\n",&((struct task_struct *)(0))->stack
15 set $a=&((struct list_head *)(0))->next
16 set $a=(int)$a+(int)&((struct task_struct *)(0))->tasks
17 printf "#define NEXT %p\n",$a
18 printf "#define COMM %p\n",&((struct task_struct *)(0))->comm
19 printf "#define MEM %p\n",&((struct task_struct *)(0))->mm
20 printf "#define ONCPU %p\n",&((struct task_struct *)(0))->on_cpu
21 printf "#define PID %p\n",&((struct task_struct *)(0))->pid
22 printf "#define CPU_CONT %p\n",&((struct thread_info *)(0))->cpu_context
23 printf "#define PREEMPT %p\n",&((struct thread_info *)(0))->preempt_count
24 printf "#define MM_CTX %p\n",&((struct mm_struct *)(0))->context
25 end
26 */
27 #define QAT 0x4
28 #define NEXT 0x1b0
29 #define COMM 0x2d4
30 #define MEM 0x1cc
31 #define ONCPU 0x18
32 #define PID 0x1f4
33 #define CPU_CONT 0x1c
34 #define PREEMPT 0x4
35 #define MM_CTX 0x160
36
37 #endif /* OPENOCD_RTOS_LINUX_HEADER_H */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)