Preprocess assembly files with the C preprocessor.
This commit is contained in:
parent
8a49c47742
commit
6788f0096e
|
@ -188,8 +188,8 @@ endif
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(CXXFLAGS)
|
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
|
||||||
%.o: %.s
|
%.o: %.S
|
||||||
$(HOSTAS) $< -o $@ $(ASFLAGS)
|
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(ALLOBJS) sortix.bin
|
rm -f $(ALLOBJS) sortix.bin
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/base.s
|
x64/base.S
|
||||||
Bootstraps the kernel and passes over control from the boot-loader to the
|
Bootstraps the kernel and passes over control from the boot-loader to the
|
||||||
kernel main function.
|
kernel main function.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/boot.s
|
x64/boot.S
|
||||||
Bootstraps the kernel and passes over control from the boot-loader to the
|
Bootstraps the kernel and passes over control from the boot-loader to the
|
||||||
kernel main function. It also jumps into long mode!
|
kernel main function. It also jumps into long mode!
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/calltrace.s
|
x64/calltrace.S
|
||||||
Attempts to unwind the stack and prints the code locations where functions
|
Attempts to unwind the stack and prints the code locations where functions
|
||||||
were called. This greatly aids debugging.
|
were called. This greatly aids debugging.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/crti.s
|
x64/crti.S
|
||||||
Provides the header of the _init and _fini functions.
|
Provides the header of the _init and _fini functions.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/crtn.s
|
x64/crtn.S
|
||||||
Provides the tail of the _init and _fini functions.
|
Provides the tail of the _init and _fini functions.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/interrupt.s
|
x64/interrupt.S
|
||||||
Transfers control to interrupt handlers when interrupts happen.
|
Transfers control to interrupt handlers when interrupts happen.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/kthread.s
|
x64/kthread.S
|
||||||
Utilities and synchronization mechanisms for x64 kernel threads.
|
Utilities and synchronization mechanisms for x64 kernel threads.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/syscall.s
|
x64/syscall.S
|
||||||
An assembly stub that acts as glue for system calls.
|
An assembly stub that acts as glue for system calls.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/base.s
|
x86/base.S
|
||||||
Bootstraps the kernel and passes over control from the boot-loader to the
|
Bootstraps the kernel and passes over control from the boot-loader to the
|
||||||
kernel main function.
|
kernel main function.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/boot.s
|
x86/boot.S
|
||||||
Bootstraps the kernel and passes over control from the boot-loader to the
|
Bootstraps the kernel and passes over control from the boot-loader to the
|
||||||
kernel main function.
|
kernel main function.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/calltrace.s
|
x86/calltrace.S
|
||||||
Attempts to unwind the stack and prints the code locations where functions
|
Attempts to unwind the stack and prints the code locations where functions
|
||||||
were called. This greatly aids debugging.
|
were called. This greatly aids debugging.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/crti.s
|
x86/crti.S
|
||||||
Provides the header of the _init and _fini functions.
|
Provides the header of the _init and _fini functions.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/crtn.s
|
x86/crtn.S
|
||||||
Provides the tail of the _init and _fini functions.
|
Provides the tail of the _init and _fini functions.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/interrupt.s
|
x86/interrupt.S
|
||||||
Transfers control to interrupt handlers when interrupts happen.
|
Transfers control to interrupt handlers when interrupts happen.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/kthread.s
|
x86/kthread.S
|
||||||
Utilities and synchronization mechanisms for x86 kernel threads.
|
Utilities and synchronization mechanisms for x86 kernel threads.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/syscall.s
|
x86/syscall.S
|
||||||
An assembly stub that acts as glue for system calls.
|
An assembly stub that acts as glue for system calls.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -575,8 +575,8 @@ headers:
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(FLAGS) $(CXXFLAGS)
|
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(FLAGS) $(CXXFLAGS)
|
||||||
|
|
||||||
%.o: %.s
|
%.o: %.S
|
||||||
$(HOSTAS) $(ASFLAGS) $< -o $@
|
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(FLAGS) $(CFLAGS)
|
||||||
|
|
||||||
# libc-sortix
|
# libc-sortix
|
||||||
sortix/%.o: %.c
|
sortix/%.o: %.c
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/calltrace.s
|
x64/calltrace.S
|
||||||
Attempts to unwind the stack and prints the code locations where functions
|
Attempts to unwind the stack and prints the code locations where functions
|
||||||
were called. This greatly aids debugging.
|
were called. This greatly aids debugging.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/crt1.s
|
x64/crt1.S
|
||||||
Implement the _start symbol at which execution begins which performs the
|
Implement the _start symbol at which execution begins which performs the
|
||||||
task of initializing the standard library and executing the main function.
|
task of initializing the standard library and executing the main function.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/crti.s
|
x64/crti.S
|
||||||
Provides the header of the _init and _fini functions.
|
Provides the header of the _init and _fini functions.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/crtn.s
|
x64/crtn.S
|
||||||
Provides the tail of the _init and _fini functions.
|
Provides the tail of the _init and _fini functions.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/fork.s
|
x64/fork.S
|
||||||
Assembly functions related to forking x64 processes.
|
Assembly functions related to forking x64 processes.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/setjmp.s
|
x64/setjmp.S
|
||||||
Implement the assembly part of setjmp.
|
Implement the assembly part of setjmp.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/signal.s
|
x64/signal.S
|
||||||
An assembly stub that for handling unix signals.
|
An assembly stub that for handling unix signals.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x64/syscall.s
|
x64/syscall.S
|
||||||
Function for performing system calls.
|
Function for performing system calls.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/calltrace.s
|
x86/calltrace.S
|
||||||
Attempts to unwind the stack and prints the code locations where functions
|
Attempts to unwind the stack and prints the code locations where functions
|
||||||
were called. This greatly aids debugging.
|
were called. This greatly aids debugging.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/crt1.s
|
x86/crt1.S
|
||||||
Implement the _start symbol at which execution begins which performs the
|
Implement the _start symbol at which execution begins which performs the
|
||||||
task of initializing the standard library and executing the main function.
|
task of initializing the standard library and executing the main function.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/crti.s
|
x86/crti.S
|
||||||
Provides the header of the _init and _fini functions.
|
Provides the header of the _init and _fini functions.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/crtn.s
|
x86/crtn.S
|
||||||
Provides the tail of the _init and _fini functions.
|
Provides the tail of the _init and _fini functions.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/fork.s
|
x86/fork.S
|
||||||
Assembly functions related to forking x86 processes.
|
Assembly functions related to forking x86 processes.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/setjmp.s
|
x86/setjmp.S
|
||||||
Implement the assembly part of setjmp.
|
Implement the assembly part of setjmp.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/signal.s
|
x86/signal.S
|
||||||
An assembly stub that for handling unix signals.
|
An assembly stub that for handling unix signals.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
|
@ -17,7 +17,7 @@
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
x86/syscall.s
|
x86/syscall.S
|
||||||
Function for performing system calls.
|
Function for performing system calls.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
Loading…
Reference in New Issue