trying to get VGA fb mode to work..
This commit is contained in:
Binary file not shown.
@@ -1,4 +1,5 @@
|
||||
#include "syscall.h"
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -23,16 +24,14 @@ void parse_cmd() {
|
||||
return;
|
||||
}
|
||||
|
||||
// need a strcat
|
||||
char* dst = path;
|
||||
strcpy(dst, bin_dir);
|
||||
dst = path + strlen(bin_dir);
|
||||
strcpy(dst, buf);
|
||||
strcpy(path, bin_dir);
|
||||
strcat(path, buf);
|
||||
|
||||
int pid = fork();
|
||||
if (pid == 0) {
|
||||
if (!exec(path)) {
|
||||
return;
|
||||
printf("failed to execute %s\n", path);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user