Skip to content

Instantly share code, notes, and snippets.

View chelmuth's full-sized avatar

Christian Helmuth chelmuth

View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
if (argc < 2) {
printf("usage: errno <num> [num ...]\n");
exit(1);
}
@chelmuth
chelmuth / rpc_args.patch
Created February 7, 2019 08:14
Example patch for more RPC args
repos/base/include/util/meta.h | 27 ++++++++++++++++++++--
.../include/hello_session/hello_session.h | 1 +
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/repos/base/include/util/meta.h b/repos/base/include/util/meta.h
index 7faee55786..f3fbd453b8 100644
--- a/repos/base/include/util/meta.h
+++ b/repos/base/include/util/meta.h
@@ -289,6 +289,22 @@ namespace Genode {
: Ref_tuple<T1, Ref_tuple_7<T2, T3, T4, T5, T6, T7, T8> >(v1, _t2), _t2(v2, v3, v4, v5, v6, v7, v8) { }
@chelmuth
chelmuth / sel4_pit_boot_code.patch
Created March 2, 2016 07:28
sel4 pit boot_code patch
src/plat/pc99/machine/pit.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/plat/pc99/machine/pit.c b/src/plat/pc99/machine/pit.c
index ebf2b75..1b40fae 100644
--- a/src/plat/pc99/machine/pit.c
+++ b/src/plat/pc99/machine/pit.c
@@ -19,31 +19,31 @@
/* Count frequency in Hz */
#define PIT_HZ 1193180
@chelmuth
chelmuth / nobody-unclean.log
Created June 1, 2015 07:04
AHCI fails on (some) real hardware
Bender: Hello World.
Need 06a96000 bytes to relocate modules.
Relocating to 7956a000:
Copying 10485760 bytes...
Copying 7558864 bytes...
Copying 14463248 bytes...
Copying 7118464 bytes...
Copying 8346872 bytes...
Copying 6123064 bytes...
Copying 6853608 bytes...
@chelmuth
chelmuth / tst.ditaa
Last active August 29, 2015 14:17
ditaa test
+--------------+
| {s} cBLU | +-----------------+ /-----------+
| hello, world |<---->| c333 hallo welt |<---=->| ROUNDED W |
+--------------+ | o XXX | \-----------+
| +-----------------+
\-\ ^ | +------------\
| | \->| ROUNDED NE |
/-/ /-------------/ +------------+
| | /----\
\---/ |INIT|