#
0cc3a351 |
| 22-Feb-2025 |
Sean Christopherson <seanjc@google.com> |
lib: Use __ASSEMBLER__ instead of __ASSEMBLY__
Convert all non-x86 #ifdefs from __ASSEMBLY__ to __ASSEMBLER__, and remove all manual __ASSEMBLY__ #defines. __ASSEMBLY_ was inherited blindly from th
lib: Use __ASSEMBLER__ instead of __ASSEMBLY__
Convert all non-x86 #ifdefs from __ASSEMBLY__ to __ASSEMBLER__, and remove all manual __ASSEMBLY__ #defines. __ASSEMBLY_ was inherited blindly from the Linux kernel, and must be manually defined, e.g. through build rules or with the aforementioned explicit #defines in assembly code.
__ASSEMBLER__ on the other hand is automatically defined by the compiler when preprocessing assembly, i.e. doesn't require manually #defines for the code to function correctly.
Ignore x86, as x86 doesn't actually rely on __ASSEMBLY__ at the moment, and is undergoing a parallel cleanup.
Signed-off-by: Sean Christopherson <seanjc@google.com> Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Message-ID: <20250222014526.2302653-1-seanjc@google.com> [thuth: Fix three more occurances in libfdt.h and sbi-tests.h] Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
1878b4b6 |
| 05-Aug-2024 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'riscv/queue' into 'master'
riscv: Fix virt_to_phys
See merge request kvm-unit-tests/kvm-unit-tests!63
|
#
e1dd4ea7 |
| 05-Aug-2024 |
Cade Richard <cade.richard@gmail.com> |
riscv: Fix virt_to_phys
After translating a virtual page address to a physical page address, virt_to_phys() needs to tack the page offset of the original virtual address back on to complete the tran
riscv: Fix virt_to_phys
After translating a virtual page address to a physical page address, virt_to_phys() needs to tack the page offset of the original virtual address back on to complete the translation.
Fixes: 23100d972705 ("riscv: Enable vmalloc") Signed-off-by: Cade Richard <cade.richard@berkeley.edu> [Added commit message, Fixes tag, and offset_in_page()] Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
49f758b8 |
| 29-May-2017 |
Andrew Jones <drjones@redhat.com> |
arm/arm64: code derived from Linux must be GPL not LGPL
Also update copyrights.
Reported-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Andrew Jones <drjones@redhat.com> [Amend two other "Adapat
arm/arm64: code derived from Linux must be GPL not LGPL
Also update copyrights.
Reported-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Andrew Jones <drjones@redhat.com> [Amend two other "Adapated" typos as well.] Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
f3bd1e05 |
| 18-Jan-2016 |
Andrew Jones <drjones@redhat.com> |
lib: add linux dir for kernel uapi headers
We needed to import some uapi headers, e.g. lib/arm/asm/uapi-psci.h, and will need some others, e.g. pci_regs.h, in the future. Create a linux directory fo
lib: add linux dir for kernel uapi headers
We needed to import some uapi headers, e.g. lib/arm/asm/uapi-psci.h, and will need some others, e.g. pci_regs.h, in the future. Create a linux directory for them in lib so that they can be included with the familiar <linux/header.h> reference.
(Note, x86 has been cheating. lib/x86/pci.c already includes <linux/pci_regs.h>, which it's been getting away with as its include paths are less strict than arm's, i.e. it *does* look in /usr/include)
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Radim KrÄmář <rkrcmar@redhat.com> Message-Id: <1453140064-9040-2-git-send-email-drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
13735aa4 |
| 30-Oct-2014 |
Andrew Jones <drjones@redhat.com> |
lib: steal const.h from kernel
And apply it to /lib files. This prepares for the import of kernel headers that make use of the const.h macros.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signe
lib: steal const.h from kernel
And apply it to /lib files. This prepares for the import of kernel headers that make use of the const.h macros.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
d1da56b4 |
| 30-Oct-2014 |
Andrew Jones <drjones@redhat.com> |
lib: add ALIGN() macro
Add a type-considerate ALIGN[_UP] macro to libcflat, and apply it to /lib code that can make use of it. This will be used to fix PAGE_ALIGN on arm, which can be used on phys_a
lib: add ALIGN() macro
Add a type-considerate ALIGN[_UP] macro to libcflat, and apply it to /lib code that can make use of it. This will be used to fix PAGE_ALIGN on arm, which can be used on phys_addr_t addresses, which may exceed 32 bits.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
901c1c8d |
| 22-Aug-2014 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge remote-tracking branch 'drjones/arm/v7-initial-drop'
|
#
f4f73de7 |
| 25-Jun-2014 |
Andrew Jones <drjones@redhat.com> |
lib/asm-generic: add page.h and virt_to_phys/phys_to_virt
Signed-off-by: Andrew Jones <drjones@redhat.com>
|