MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / writeStackString

Function writeStackString

source/kernel/kprocess.cpp:309–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309static void writeStackString(KThread* thread, CPU * cpu, const char* s) {
310 int count = (int)((strlen(s)+4)/4);
311 int i;
312 for (i=0;i<count;i++) {
313 cpu->push32(0);
314 }
315 thread->memory->strcpy(ESP, s);
316}
317
318#define HWCAP_I386_FPU 1 << 0
319#define HWCAP_I386_VME 1 << 1

Callers 2

pushThreadStackFunction · 0.85
setupThreadStackFunction · 0.85

Calls 2

strcpyMethod · 0.80
push32Method · 0.45

Tested by

no test coverage detected