packet_t * packet = (packet_t *)memalign(4096, sizeof(packet_t));
packet->signature = 0x1BADD00D;
- packet->type = 0xF00FC7C8;
+ packet->type = 42;
+ strcpy(packet->data, "hello, world!");
if (iopl(3) < 0)
{
res = poke(_get_PMBASE() + 0x04, (void *)packet);
printf("returned %p\n", res);
+
+ if (res == 42) {
+ int i;
+ for (i = 0; i < 96; i++)
+ printf("%s\n", packet->data + i * 41);
+ }
}