Skip to content

Commit

Permalink
FEAT: Drop stack frame setup for libc init
Browse files Browse the repository at this point in the history
We don't use the stack frame here, and the libc initialisation code
doesn't need it setup either.
  • Loading branch information
earl committed Feb 26, 2012
1 parent cc6b046 commit cb8f84a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions red-system/runtime/start.reds
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Red/System [

__stack!: alias struct! [
top [pointer! [integer!]]
frame [pointer! [integer!]]
]

system: declare struct! [ ;-- trimmed down temporary system definition
Expand All @@ -34,7 +33,6 @@ system: declare struct! [ ;-- trimmed down temporary system definition
]
]]

system/stack/frame: as pointer! [integer!] 0
***__argc: pop
***__argv: system/stack/top
system/stack/top: as pointer! [integer!] (FFFFFFF0h and as integer! ***__argv)
Expand Down

0 comments on commit cb8f84a

Please sign in to comment.