Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Krishna Vinnakota
CSEP551
Commits
8a7eb80e
Commit
8a7eb80e
authored
18 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
fix main return type
parent
b75c11b2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
main.c
+6
-3
6 additions, 3 deletions
main.c
with
7 additions
and
4 deletions
Makefile
+
1
−
1
View file @
8a7eb80e
...
...
@@ -48,7 +48,7 @@ kernel : $(OBJS) bootother.S user1 usertests userfs
$(
LD
)
-N
-e
start
-Ttext
0x7000
-o
bootother.out bootother.o
$(
OBJCOPY
)
-S
-O
binary bootother.out bootother
$(
OBJDUMP
)
-S
bootother.o
>
bootother.asm
$(
LD
)
-Ttext
0x100000
-e
main
-o
kernel
$(
OBJS
)
-b
binary bootother user1 usertests userfs
$(
LD
)
-Ttext
0x100000
-e
main
0
-o
kernel
$(
OBJS
)
-b
binary bootother user1 usertests userfs
$(
OBJDUMP
)
-S
kernel
>
kernel.asm
vectors.S
:
vectors.pl
...
...
This diff is collapsed.
Click to expand it.
main.c
+
6
−
3
View file @
8a7eb80e
...
...
@@ -18,8 +18,11 @@ extern uint8_t _binary_userfs_start[], _binary_userfs_size[];
extern
int
use_console_lock
;
// CPU 0 starts running C code here.
int
main
()
// This is called main0 not main so that it can have
// a void return type. Gcc can't handle functions named
// main that don't return int. Really.
void
main0
(
void
)
{
int
i
;
struct
proc
*
p
;
...
...
@@ -89,7 +92,7 @@ main()
}
// Additional processors start here.
int
void
mpmain
(
void
)
{
cprintf
(
"an application processor
\n
"
);
...
...
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