Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
summeros
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Byron Lathi
summeros
Commits
426416ea
Commit
426416ea
authored
3 years ago
by
Byron Lathi
Browse files
Options
Downloads
Patches
Plain Diff
add program to test executing
parent
17ff503a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fsdir/Programs/src/Makefile
+3
-3
3 additions, 3 deletions
fsdir/Programs/src/Makefile
fsdir/Programs/src/exectest.c
+9
-0
9 additions, 0 deletions
fsdir/Programs/src/exectest.c
fsdir/Programs/src/hello.c
+1
-1
1 addition, 1 deletion
fsdir/Programs/src/hello.c
with
13 additions
and
4 deletions
fsdir/Programs/src/Makefile
+
3
−
3
View file @
426416ea
CFLAGS
+=
-Wall
-nostdlib
-ffreestanding
-m32
CFLAGS
+=
-Wall
-nostdlib
-ffreestanding
-m32
-g
LDFLAGS
+=
-nostdlib
-ffreestanding
-m32
CC
=
i686-elf-gcc
SRC
=
hello
SRC
=
hello
exectest
.SUFFIXES
:
...
...
@@ -19,4 +19,4 @@ ALL: $(SRC)
mv
$@
../bin
clean
:
rm
-f
../bin/
$(
SRC
)
rm
-f
../bin/
*
This diff is collapsed.
Click to expand it.
fsdir/Programs/src/exectest.c
0 → 100644
+
9
−
0
View file @
426416ea
#include
"syscall.h"
int
main
()
{
sys_exec
((
uint8_t
*
)
"/Programs/bin/hello"
);
sys_write
(
1
,
"Done executing!
\n
"
,
sizeof
(
"Done executin!
\n
"
));
return
0
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
fsdir/Programs/src/hello.c
+
1
−
1
View file @
426416ea
...
...
@@ -3,6 +3,6 @@
int
main
()
{
sys_write
(
1
,
"Hello, World!
\n
"
,
14
);
sys_write
(
1
,
"Hello, World!
\n
"
,
sizeof
(
"Hello, World!
\n
"
)
);
return
0
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment