1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Preprocess assembly files with the C preprocessor.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-12-28 21:00:15 +01:00
parent 8a49c47742
commit 6788f0096e
34 changed files with 36 additions and 36 deletions

View file

@ -188,8 +188,8 @@ endif
%.o: %.cpp
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(CXXFLAGS)
%.o: %.s
$(HOSTAS) $< -o $@ $(ASFLAGS)
%.o: %.S
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(CXXFLAGS)
clean:
rm -f $(ALLOBJS) sortix.bin

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
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
kernel main function.

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
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
kernel main function. It also jumps into long mode!

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
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
were called. This greatly aids debugging.

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
Sortix. If not, see <http://www.gnu.org/licenses/>.
x64/crti.s
x64/crti.S
Provides the header of the _init and _fini functions.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
Sortix. If not, see <http://www.gnu.org/licenses/>.
x64/crtn.s
x64/crtn.S
Provides the tail of the _init and _fini functions.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
Sortix. If not, see <http://www.gnu.org/licenses/>.
x64/interrupt.s
x64/interrupt.S
Transfers control to interrupt handlers when interrupts happen.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
Sortix. If not, see <http://www.gnu.org/licenses/>.
x64/kthread.s
x64/kthread.S
Utilities and synchronization mechanisms for x64 kernel threads.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
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.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
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
kernel main function.

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
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
kernel main function.

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
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
were called. This greatly aids debugging.

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
Sortix. If not, see <http://www.gnu.org/licenses/>.
x86/crti.s
x86/crti.S
Provides the header of the _init and _fini functions.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
Sortix. If not, see <http://www.gnu.org/licenses/>.
x86/crtn.s
x86/crtn.S
Provides the tail of the _init and _fini functions.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
Sortix. If not, see <http://www.gnu.org/licenses/>.
x86/interrupt.s
x86/interrupt.S
Transfers control to interrupt handlers when interrupts happen.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
Sortix. If not, see <http://www.gnu.org/licenses/>.
x86/kthread.s
x86/kthread.S
Utilities and synchronization mechanisms for x86 kernel threads.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License along with
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.
*******************************************************************************/

View file

@ -575,8 +575,8 @@ headers:
%.o: %.cpp
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(FLAGS) $(CXXFLAGS)
%.o: %.s
$(HOSTAS) $(ASFLAGS) $< -o $@
%.o: %.S
$(HOSTCXX) -c $< -o $@ $(CPPFLAGS) $(FLAGS) $(CFLAGS)
# libc-sortix
sortix/%.o: %.c

View file

@ -17,7 +17,7 @@
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/>.
x64/calltrace.s
x64/calltrace.S
Attempts to unwind the stack and prints the code locations where functions
were called. This greatly aids debugging.

View file

@ -17,7 +17,7 @@
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/>.
x64/crt1.s
x64/crt1.S
Implement the _start symbol at which execution begins which performs the
task of initializing the standard library and executing the main function.

View file

@ -17,7 +17,7 @@
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/>.
x64/crti.s
x64/crti.S
Provides the header of the _init and _fini functions.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x64/crtn.s
x64/crtn.S
Provides the tail of the _init and _fini functions.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x64/fork.s
x64/fork.S
Assembly functions related to forking x64 processes.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x64/setjmp.s
x64/setjmp.S
Implement the assembly part of setjmp.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x64/signal.s
x64/signal.S
An assembly stub that for handling unix signals.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x64/syscall.s
x64/syscall.S
Function for performing system calls.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x86/calltrace.s
x86/calltrace.S
Attempts to unwind the stack and prints the code locations where functions
were called. This greatly aids debugging.

View file

@ -17,7 +17,7 @@
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/>.
x86/crt1.s
x86/crt1.S
Implement the _start symbol at which execution begins which performs the
task of initializing the standard library and executing the main function.

View file

@ -17,7 +17,7 @@
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/>.
x86/crti.s
x86/crti.S
Provides the header of the _init and _fini functions.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x86/crtn.s
x86/crtn.S
Provides the tail of the _init and _fini functions.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x86/fork.s
x86/fork.S
Assembly functions related to forking x86 processes.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x86/setjmp.s
x86/setjmp.S
Implement the assembly part of setjmp.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x86/signal.s
x86/signal.S
An assembly stub that for handling unix signals.
*******************************************************************************/

View file

@ -17,7 +17,7 @@
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/>.
x86/syscall.s
x86/syscall.S
Function for performing system calls.
*******************************************************************************/