Gordon Bergling
23615a3e4e
powerpc: Fix a typo in a comment
...
- s/layed/laid/
MFC after: 3 days
2022-06-04 19:55:03 +02:00
Gordon Bergling
d8dd4b2fd2
powerpc: Fix two typos in source code comments
...
- s/auxillary/auxiliary/
MFC after: 3 days
2022-06-04 10:39:50 +02:00
Dmitry Chagin
eca368ecb6
Retire sv_transtrap
...
Call translate_traps directly from sendsig().
MFC after: 2 weeks
2022-05-20 14:54:03 +03:00
Mitchell Horne
db71383b88
kerneldump: remove physical from dump routines
...
It is unused, especially now that the underlying d_dumper methods do not
accept the argument.
Reviewed by: markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D35174
2022-05-13 10:43:19 -03:00
John Baldwin
0a763c165f
powerpc nexus: Remove unused devclass argument to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
f92448c993
powerpc psim: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
9b9a532782
powerpc pseries: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
c331b0e4a3
powerpc ps3: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
5edf159ff1
powerpc powernv: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
992ae60ba4
powerpc powermac: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
5d7d6129f4
powerpc mpc85xx: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
54b3d1efbf
rbled: Remove unused devclass argument to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
f6a99df5da
powerpc mambo: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
b9f8eda4eb
powerpc amigaone: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-10 10:21:38 -07:00
John Baldwin
52ed569ba5
Remove unused openpic_devclass.
2022-05-10 10:21:38 -07:00
John Baldwin
42f777fc20
Remove unused adb_devclass.
2022-05-10 10:21:38 -07:00
John Baldwin
03f6459cb3
ofw drivers: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-09 14:26:44 -07:00
John Baldwin
c90ea83112
Remove unused uart_devclass.
2022-05-06 15:46:57 -07:00
John Baldwin
676ea8e177
Remove unused iicbus_devclass.
2022-05-06 15:39:30 -07:00
John Baldwin
b3407dcc58
cpufreq: Remove unused devclass arguments to DRIVER_MODULE.
2022-05-06 15:39:29 -07:00
John Baldwin
d5a7306c75
ata: Remove ata_devclass from DRIVER_MODULE invocations.
...
Keep the global variable for its uses in ata-pci.c and
chipsets/ata-fsl.c but initialize it in the existing
ata_module_event_handler. Move the module event handler a bit earlier
to ensure the variable is set before any devices are attached.
2022-05-06 15:36:10 -07:00
Piotr Kubaj
25768526bb
powerpc: enable wlan and ath modules in GENERIC64*
...
Reviewed by: jhibbits (src)
Differential Revision: https://reviews.freebsd.org/D35089
2022-04-28 11:42:39 +02:00
John Baldwin
e4a38f5407
powerpc pseries xics: Use devclass_find to lookup xicp devclass.
...
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D35083
2022-04-27 15:08:47 -07:00
Dmitry Chagin
fe2c9f83a6
Remove dead code.
...
is_physical_memory() dead since 235a54de .
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35056
MFC after: 2 weeks
2022-04-26 19:40:59 +03:00
Piotr Kubaj
1d307cc85c
powerpc: add GENERIC64LE-NODEBUG config and improve GENERIC64-NODEBUG
...
Also remove whitespace from GENERIC-NODEBUG.
Approved by: jhibbits (src)
Differential review: https://reviews.freebsd.org/D34785
2022-04-22 01:06:13 +02:00
John Baldwin
d4ab3a8d4f
busdma_bounce: Add free_bounce_pages helper function.
...
Deduplicate code to iterate over the bpages list in a bus_dmamap_t
freeing bounce pages during bus_dmamap_unload.
Reviewed by: imp
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D34967
2022-04-21 10:42:14 -07:00
Brooks Davis
c2f6aae007
machine/in_cksum.h: don't include sys/cdefs.h
...
All consumers already do it and it was required on amd64 and i386
until recently (1c1bf5bd7c ).
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D34932
2022-04-18 21:02:19 +01:00
John Baldwin
7c1ff7146b
powerpc cpu_idle_60x: Move some variables fully under #ifdef AIM.
...
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D34905
2022-04-18 12:08:35 -07:00
John Baldwin
ff1de4e02e
powerpc booke cpu_machine_check: Remove unused variable.
...
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D34902
2022-04-18 12:08:10 -07:00
John Baldwin
6f568b14cb
powerpc cpu_idle_booke: Move read of mfmsr under #ifdef BOOKE_E500.
...
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D34891
2022-04-18 12:07:34 -07:00
John Baldwin
d5472cd4b3
ata_kauai: Fix support for "shasta" controllers.
...
The probe routine was setting a value in the softc, but since the
probe routine was not returning zero, this value was lost since the
softc was reallocated (and re-zeroed) when the device was attached.
This is similar in nature to the fixes from
965205eb66 .
To fix, move the code to set the 'shasta' flag to the start of attach
along with related code to set an IRQ resource on some non-shasta
devices. The IRQ resource still "worked" being in the probe routine
as the IRQ resource persisted after probe returned, but it is cleaner
to go ahead and move it to attach after setting the 'shasta' flag.
I have no way to test this, but noticed this while reading the code.
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D34888
2022-04-18 12:06:52 -07:00
John Baldwin
a30eb84a5d
powerpc mpc85xx: Remove unused variables.
2022-04-13 16:08:24 -07:00
John Baldwin
1c311640c0
powerpc: Use __diagused for variables only used in KASSERT().
2022-04-13 16:08:23 -07:00
John Baldwin
f602f7e6f7
opalflash: Remove unused variable.
2022-04-12 14:58:59 -07:00
John Baldwin
01d643ae93
ps3fb: Remove unused variable.
2022-04-12 14:58:59 -07:00
John Baldwin
b2a8b342f3
llan: Remove unused variables.
...
In theory the errors during llan_attach should be handled, but other
errors in llan_attach (e.g. bus_setup_intr) are already ignored, so
just remove the unused variable to preserve the status quo.
2022-04-12 14:58:59 -07:00
John Baldwin
7e7f7b91d0
powerpc cpudep_ap_setup: Quite unused variable warnings.
2022-04-12 14:58:59 -07:00
John Baldwin
da8b238529
powerpc: Remove unused variables.
2022-04-12 14:58:58 -07:00
John Baldwin
b7fe00faea
powerpc pmu: Quiet set but unused warnings.
...
- Remove unused variables.
- Replace a dummy variable with a void cast.
2022-04-12 14:58:58 -07:00
John Baldwin
5f2995aa95
powerpc pmu: Don't use garbage battery info.
...
If pmu_query_battery fails, don't notify a change in battery status.
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D34889
2022-04-12 14:58:58 -07:00
John Baldwin
2ad93a4f6b
grackle badaddr: Use void casts instead of a dummy variable.
2022-04-12 14:58:58 -07:00
John Baldwin
9c861e931c
cuda: Remove unused variables.
2022-04-12 14:58:58 -07:00
John Baldwin
6e31d66849
ata_dbdma_dmainit: Remove unused variable.
2022-04-12 14:58:58 -07:00
John Baldwin
019493db3e
ata_kauai: Remove unused variable.
2022-04-12 14:58:58 -07:00
John Baldwin
6d0f9c91cb
powerpc cpufreq: Remove unused variables.
2022-04-12 14:58:58 -07:00
John Baldwin
c9d26ca24c
ppc mmoea64: Workaround set but unused warnings for RB_NEXT.
...
Inline the unused expression passed as the second argument to RB_NEXT.
2022-04-12 14:58:58 -07:00
John Baldwin
8d95af873f
ppc aim flush_disable_caches: Use void casts instead of a dummy variable.
2022-04-12 14:58:58 -07:00
John Baldwin
3d6f4411e4
Remove checks for <sys/cdefs.h> being included.
...
These files no longer depend on the macros required when these checks
were added.
PR: 263102 (exp-run)
Reviewed by: brooks, imp, emaste
Differential Revision: https://reviews.freebsd.org/D34804
2022-04-12 10:06:18 -07:00
John Baldwin
5f9c9ae2f2
Remove checks for __CC_SUPPORTS_WARNING assuming it is always true.
...
All supported compilers (modern versions of GCC and clang) support
this.
PR: 263102 (exp-run)
Reviewed by: brooks, imp
Differential Revision: https://reviews.freebsd.org/D34803
2022-04-12 10:06:13 -07:00
Gordon Bergling
f259d24fa5
powerpc: Fix two typos in source code comments
...
- s/mutiplying/multiplying/
MFC after: 3 days
2022-04-09 09:14:07 +02:00