Skip to content

Commit

Permalink
Add memory management with simplified virtual memory translation
Browse files Browse the repository at this point in the history
               Add privilege modes
               Add mmu test and update bindings
  • Loading branch information
JGalvez27 committed Dec 1, 2024
1 parent 556d3d6 commit 472b198
Show file tree
Hide file tree
Showing 25 changed files with 1,050 additions and 47 deletions.
29 changes: 29 additions & 0 deletions copy_code.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

# Check if at least two arguments (directories) are passed
if [ "$#" -lt 2 ]; then
echo "Usage: $0 <directory1> <directory2> ... <output_file>"
exit 1
fi

# Set the last argument as the output file
output_file="${!#}"

# Remove the output file if it exists to start fresh
> "$output_file"

# Iterate over all directories except the last argument (output file)
for dir in "$@"; do
if [ "$dir" != "$output_file" ]; then
# Find .h and .cpp files in the directory and subdirectories
find "$dir" -type f \( -name "*.h" -o -name "*.cpp" \) | while read -r file; do
# Append the file contents to the output file with a separator
echo "----- Start of $file -----" >> "$output_file"
cat "$file" >> "$output_file"
echo -e "\n----- End of $file -----\n" >> "$output_file"
done
fi
done

echo "Contents copied to $output_file."

Loading

0 comments on commit 472b198

Please sign in to comment.