summaryrefslogtreecommitdiff
path: root/sys/arch/ia64/include
AgeCommit message (Collapse)Author
2023-06-03fix various typos in comments and messages.andvar
2022-08-20machine/efi.h: Migrate common definitions to dev/efi/efi.h.riastradh
2022-08-20ia64/efi.h: Make st_rt/st_cfgtbl pointers, not uint64_t, per spec.riastradh
2022-08-20ia64: Make ct_data void *, not uint64_t, as in spec.riastradh
2022-08-20ia64: Use uint64_t, not void *, for EFI virtual addresses, as in spec.riastradh
2022-08-20ia64/efi.h: Fix whitespace. No functional change intended.riastradh
2022-08-20machine/efi.h: Add more memory descriptor attributes.riastradh
2022-07-21s/Transration/Translation/andvar
2022-07-21fix typos in comments and log messages, mainly s/intrrupt/interrupt/.andvar
2022-05-31fix various typos in comments, documentation and messages.andvar
2022-04-06Nix trailing whitespace in files of membars, atomics, and lock stubs.riastradh
Will be touching many of these files soon for functional changes. No functional change intended.
2022-02-12__cpu_simple_lock(9): Omit needless barriers in init.riastradh
It is, and always has been, the caller's responsibility to ensure the lock is initialized before it can be used -- otherwise the memory could hold garbage; it is nonsensical to even attempt locking operations on it before initialization. So there's no need to issue explicit barriers here. The barrier seems to have been introduced in sys/arch/alpha/alpha/lock_machdep.c rev. 1.1 (since moved to inline asm in alpha/include/lock.h) and then copied & pasted into several other architectures.
2021-11-15Sprinkle const (and fix build)skrll
2021-08-25- In kern_mutex.c, if MUTEX_CAS() is not defined, define it in terms ofthorpej
atomic_cas_ulong(). - For arm, ia64, m68k, mips, or1k, riscv, vax: don't define our own MUTEX_CAS(), as they either use atomic_cas_ulong() or equivalent (atomic_cas_uint() on m68k). - For alpha and sparc64, don't define MUTEX_CAS() in terms of their own _lock_cas(), which has its own memory barriers; the call sites in kern_mutex.c already have the appropriate memory barrier calls. Thus, alpha and sparc64 can use default definition. - For sh3, don't define MUTEX_CAS() in terms of its own _lock_cas(); atomic_cas_ulong() is strong-aliased to _lock_cas(), therefore defining our own MUTEX_CAS() is redundant. Per thread: https://mail-index.netbsd.org/tech-kern/2021/07/25/msg027562.html
2021-05-31Include "opt_param.h" (ifdef _KERNEL_OPT) everywhere that MSGBUFSIZE issimonb
referenced since some sources include <machine/param.h>.
2021-04-01Whitespace: #define<tab>simonb
2021-01-23Document via __HAVE_BUS_SPACE_8 platforms that implement bus_space_*_8christos
2020-09-07define __HAVE___LWP_GETPRIVATE_FASTmrg
2020-06-29Fix for last checkin, don't try use non-existent register from a (currently) ↵scole
dummy struct
2020-06-29Allow kernel to compile by preventing "error: stack usage is ..."scole
too-large errors. What was there previously was not correct and this will need to be revisited for debugger to ever become functional anyway.
2020-04-17Mark the .ident section as mergable string section to avoid redundantjoerg
entries.
2019-12-27Harmonize the namespace of fast TLS base pointer getter functionskamil
Protect __lwp_getprivate_fast() with _RTLD_SOURCE, _LIBC_SOURCE and __LIBPTHREAD_SOURCE__. Include in this namespace <sys/tcl.h> and use __BEGIN_DECLS/__END_DECLS for the sake of consistency.
2019-12-26s/lenght/length/msaitoh
2019-12-22Add acpi_intr_mask() and acpi_intr_unmask() which, following the pre-existingthorpej
ACPI software layering model, are wrappers around acpi_md_intr_mask() and acpi_md_intr_unmask(), which in turn are wrappers around intr_mask() and intr_unmask(). XXX ARM and IA64 implementations of acpi_md_intr_mask() and acpi_md_intr_unmask() are just stubs for now.
2019-12-15Remove clause 3 and 4 leftovers from TNF licenses in more sources.tsutsui
Confirmed by martin@ in PR/54760.
2019-12-01Fix false sharing problems with cpu_info. Identified with tprof(8).ad
This was a very nice win in my tests on a 48 CPU box. - Reorganise cpu_data slightly according to usage. - Put cpu_onproc into struct cpu_info alongside ci_curlwp (now is ci_onproc). - On x86, put some items in their own cache lines according to usage, like the IPI bitmask and ci_want_resched.
2019-11-29Nix now-unused definitions of MUTEX_GIVE/MUTEX_RECEIVE.riastradh
2019-11-29Nix mb_* on ia64.riastradh
2019-11-29Largely eliminate the MD rwlock.h header file.riastradh
This was full of definitions that have been obsolete for over a decade. The file still remains for __HAVE_RW_STUBS but that's all. Used only internally in kern_rwlock.c now, not by <sys/rwlock.h>.
2019-11-24Make ci_want_resched a u_int.ad
2019-11-23cpu_need_resched():ad
- Remove all code that should be MI, leaving the bare minimum under arch/. - Make the required actions very explicit. - Pass in LWP pointer for convenience. - When a trap is required on another CPU, have the IPI set it locally. - Expunge cpu_did_resched().
2019-11-16do the ignore -Wshadow dance for builtins and GCC 8, copied from ppc version.mrg
2019-09-23Provide PRIxBUSADDR, PRIxBUSSIZE, PRIuBUSSIZE, and PRIxBSH for all archesskrll
to follow arm and (generic) mips. Reviewed by christos.
2019-06-18Introduce PTRACE_REG_FP() a helper macro to retrieve the frame pointerkamil
The macro is dummy for ia64 (the FP register is unknown and can change freely) and sparc/sparc64 (not stored in struct reg).
2019-06-17Enhance ia64/mcontext defineskamil
Stop mapping _UC_MACHINE_FP() to a register as it is not supported by CPU. There is need to use in code __builtin_frame_address() inlined in the code to get the frame pointer. Return a constant value 0 instead. New value does not pretend to return a meaningful value. While there, fix the definition of _UC_MACHINE_SET_PC as it didn't contain the pc argument in the definition.
2019-05-02Remove some unused assembly and other variables to reduce compile warningsscole
2019-04-11Fix CVS Id usagekamil
2019-03-29Remove SGROWSIZ parameter which looks like it was imported from FreeBSD and ↵scole
not use with NetBSD
2019-01-21Fix wrong scoping of {U,}LLONG_MAX. More cases, not just amd64.dholland
PR 53298 from Roberto E. Vargas Caballero.
2019-01-10consolidate hint@pause in one place. remove mf.a from memory barriersscole
2019-01-07move DEV_BSIZE, DEV_BSHIFT out of MD param.h, they are same on all portsjdolecek
also move BLKDEV_IOSIZE, MAXPHYS, but allow override since some ports have different value (powerpc uses NBPG for BLKDEV_IOSIZE, sun2/sun3 have lower MAXPHYS)
2018-12-29fix stack size calculationscole
2018-12-02fix SP offsetscole
2018-11-16Add MD functions for establishing and disestablishing interrupt handlers.jmcneill
2018-11-16Add intr_establish_xname stubjmcneill
2018-11-15change "PCB" to "pcb"scole
2018-11-14- When forking, use own register stack for each threadscole
- For UAREA, arrange layout same as FreeBSD for now to hopefully ease porting woes. add some related macros locore.S is incorrectly assuming same layout and seems painful to change bspstore in startup - use ia64_init_return same as FreeBSD - change some "printf" to "panic" for incompleted items context switching is still broken but maybe less so
2018-07-12Remove the kernel PMC code. Sent yesterday on tech-kern@.maxv
This change: * Removes "options PERFCTRS", the associated includes, and the associated ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is good. * Removes the PMC code of ARM XSCALE. * Removes all the pmc.h files. They were all empty, except for ARM XSCALE. * Reorders the x86 PMC code not to rely on the legacy pmc.h file. The definitions are put in sysarch.h. * Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control and sys_pmc_get_info syscalls. They are marked as OBSOL in kern, netbsd32 and rump. * Removes the pmc_evid_t and pmc_ctr_t types. * Removes all the associated man pages. The sets are marked as obsolete.
2018-04-26Update some of the _UC_MACHINE* macros even though gregs[] aren't tied to ↵scole
anything yet
2018-03-20Allow registering ACPI interrupt handlers with a xname.bouyer
AcpiOsInstallInterruptHandler(), part of ACPICA API, doesn't allow passing the xname. I extend the API with AcpiOsInstallInterruptHandler_xname() for this purpose, and change acpi_md_OsInstallInterruptHandler() to accept and use the xname (ia64 doens't use it). The xname was hardcoded to "acpi SCI" in the x86 acpi_md_OsInstallInterruptHandler(), so I make AcpiOsInstallInterruptHandler() call AcpiOsInstallInterruptHandler_xname with xname = "acpi SCI". Now 'vmstat -i' shows the device's name instead of "acpi SCI" for for i2c HID interrupts. Proposed on tech-kern@ on Dec 29.