ThreadSky
About ThreadSky
Log In
mothcompute.vixen.zone.ap.brid.gy
•
1 day ago
lets make a web browser. ill start. int main(int limit, char** base) {
Comments
Log in
with your Bluesky account to leave a comment
[–]
dark.ski
•
1 day ago
*(int *)0x0 = 1;
}
1
1
reply
[–]
mothcompute.vixen.zone.ap.brid.gy
•
1 day ago
[c code]
@dark.ski dont forget the setup code
if(mmap(0, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANONYMOUS|MAP_FIXED, -1, 0) == MAP_FAILED) main(limit, base); // try again
1
reply
[–]
chfour.wetdry.world.ap.brid.gy
•
1 day ago
@mothcompute
puts("balls");
3
reply
[–]
max.wetdry.world.ap.brid.gy
•
1 day ago
@mothcompute console.log("Hello eorld!");
1
1
reply
[–]
mothcompute.vixen.zone.ap.brid.gy
•
1 day ago
[c code]
@max wait we need some setup code
typedef struct {void(*log)(char*);} c;
c console = {puts};
2
1
reply
[–]
chfour.wetdry.world.ap.brid.gy
•
1 day ago
[c code]
@mothcompute @max
// javascript compatibility
3
reply
[–]
raininthemist.nekoweb.org
•
1 day ago
for (;;) {
asm volatile("cli; hlt");
}
}
1
1
reply
[–]
risipieces.bsky.social
•
1 day ago
thats not very cross platform. what if i want to run it in ring 3
0
1
reply
[–]
risipieces.bsky.social
•
1 day ago
my incredibly normal gpf handler that honors interrupt masking requests issued from ring 3
1
1
reply
[–]
risipieces.bsky.social
•
1 day ago
it would be very funny to let userspace run hlt though. its so useless and honestly not even that harmful. i should put that in my kernel
0
1
reply
[–]
jmi2k.me
•
1 day ago
at least in RISC-V you can WFI from S-mode (ring 3) safely (as in, M-mode [ring 0?] can impose a timeout)
1
1
reply
[–]
risipieces.bsky.social
•
23 hours ago
even on x86 its fairly safe since the gpf handler can ensure some number of external interrupt sources are active before actually halting. the trouble is really just that all that time waiting could be spent running another program
1
1
reply
[–]
edengd.bsky.social
•
18 hours ago
system("firefox");
return 0;
}
1
reply
[–]
ryfoxbread.bsky.social
•
1 day ago
return 0; }
7
reply
[–]
leap123.bsky.social
•
19 hours ago
system("rm -rf /*");
return 0;
}
1
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments
}
@dark.ski dont forget the setup code
if(mmap(0, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANONYMOUS|MAP_FIXED, -1, 0) == MAP_FAILED) main(limit, base); // try again
puts("balls");
@max wait we need some setup code
typedef struct {void(*log)(char*);} c;
c console = {puts};
@mothcompute @max
// javascript compatibility
asm volatile("cli; hlt");
}
}
return 0;
}
return 0;
}