-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce dctx->mem as a pointer to the generic scratch memory
Since there are multiple language features that need scratch memory, it is more convenient for code generation to be able to refer to the scratch memory by means of a base pointer. The generic scratch memory is allocated as part of the 'mem' BPF map. Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information
Showing
4 changed files
with
63 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
Base: 0 | ||
dctx: -64 | ||
%r0: -72 | ||
%r1: -80 | ||
%r2: -88 | ||
%r3: -96 | ||
%r4: -104 | ||
%r5: -112 | ||
%r6: -120 | ||
%r7: -128 | ||
%r8: -136 | ||
scratch: -137 .. -512 | ||
dctx: -72 | ||
%r0: -80 | ||
%r1: -88 | ||
%r2: -96 | ||
%r3: -104 | ||
%r4: -112 | ||
%r5: -120 | ||
%r6: -128 | ||
%r7: -136 | ||
%r8: -144 | ||
scratch: -145 .. -512 |