xinu-os / xinu

Repository for Xinu source code
http://xinu-os.org/
Other
432 stars 128 forks source link

Add support for 64 bit architectures #23

Open dudinea opened 5 years ago

dudinea commented 5 years ago

This PR adds support for 64 bit architectures in preparation for the RISC-V 64 port.

It contains the following changes:

Fix the code that assumes that pointers and int have the same size: use uintptr_t or intptr_t instead.

Introduce macros for byte swapping of 64 bit values

Conditionally define some relevant macros.

Allow printing of 64 bit addresses at system start and in memory status.