On Fri, 8 Jul 2022 16:04:47 +
Guilherme Janczak wrote:
> gzip violates wpath if you tell it to extract stdin and restore the
> original filename.
More than a year ago, Guilherme Janczak reported that OpenBSD's
"gzip -dN https://marc.info/?l=openbsd-tech=165729624913806=2
I made a new diff
On Tue, 19 Sep 2023 21:48:57 +
Klemens Nanni wrote:
> distrib/powerpc64/ramdisk builds and fits; I did not have a free disk
> (partition) to run-test, but completing the config should be fine.
I moved my /usr/xobj filesystem to a softraid CONCAT. The old bsd.rd
failed to mount it, the new
On Fri, 25 Aug 2023 21:00:34 -0500
Scott Cheloha wrote:
> @@ -148,4 +185,18 @@ dt_prov_interval_enter(struct dt_provide
> }
> smr_read_leave();
> return 0;
> +}
> +
> +void
> +dt_prov_profile_intr(struct clockintr *cl, void *cf)
> +{
> + uint64_t count, i;
> + struct
On Thu, 3 Aug 2023 18:43:21 -0700
Andrew Hewus Fresh wrote:
> Here's a new version, I think I addressed all of the feedback I got,
> although may have missed something.
ok gkoehler@
You sent this new version 2 weeks ago, but I didn't build it until
yesterday. syscall_emulator.t passes on
On Wed, 19 Jul 2023 02:03:26 +0200
Tobias Heider wrote:
> > ok anyone?
>
> No one interested in working keyboard backlight shortcuts?
> Don't get scared by the powerbook part, a lot of this is reusable for other
> laptop models.
The arch/macppc/* part is ok gkoehler@, except for 2 minor style
On Thu, 20 Jul 2023 19:32:33 -0700
Andrew Hewus Fresh wrote:
> On Mon, Jul 17, 2023 at 11:54:18PM -0400, George Koehler wrote:
> > How to pread($fd, $buf, 4, 16)?
> >
> > 1. syscall(169, $fd, $buf, 4, 0, 16)
> > 2. syscall(169, $fd, $buf, 4, 0, 0, 16)
> >
On Thu, 15 Jun 2023 20:26:43 +0200
Henryk Paluch wrote:
> To enable EXA acceleration (the only that is supported in current
> X-Window distribution) we can for example create file
> /etc/X11/xorg.conf.d/15-nv-exa.conf with contents:
>
>
> Section "Device"
> Identifier "nv"
>
On Sun, 9 Jul 2023 13:29:58 -0700
Andrew Hewus Fresh wrote:
> +syscall_emulator.h Emulator to dispatch syscalls to libc
This got installed as
/usr/libdata/perl5/powerpc64-openbsd/CORE/syscall_emulator.h
ExtUtils::MakeMaker is using cc -DHAS_SYSCALL_EMULATOR to build my XS
module; the
On Sun, 9 Jul 2023 13:29:58 -0700
Andrew Hewus Fresh wrote:
> + case SYS_truncate:
> + {
> + const char * path = va_arg(args, const char *);
> + off_t length = va_arg(args, off_t);
> + ret = truncate(path, length);
> + }
> +
On Sun, 9 Jul 2023 13:29:58 -0700
Andrew Hewus Fresh wrote:
> Here is a patch to replace perl(1)'s use of syscall(2) with a dispatcher
> that will call the libc function instead.
patch(1) didn't "chmod +x gen_syscall_emulator.pl", but I needed to
do so to get around this this error,
$ make -f
On Sun, 7 May 2023 19:21:11 -0700
Philip Guenther wrote:
> On Sun, May 7, 2023 at 6:13 AM Marc Espie
> wrote:
>
> > I'm actually wondering whether keeping the prototype is worth it.
> ...
> For plain subs, I would only keep them if they _really_ help the calls look
> for more perl-ish, by
On Wed, 25 Jan 2023 18:45:32 -0800
Andrew Hewus Fresh wrote:
> Good news! I got all our patches updated for perl 5.36.0. To skip the
> summary of new features, jump down to the bottom for details on how you
> can help test it.
A few months ago, I put perl 5.36.0 in a macppc's $HOME, but it
OpenBSD/macppc can enforce xonly on the PowerPC G5. libcrypto linked
with cc -Wl,--execute-only will SIGSEGV as the PowerPC asm of sha256
tries to read a table from text. The fix is to move the table to
rodata. To find the table, I would do
bcl 20, 31, 1f
1: mflr%r7
On Sun, 20 Nov 2022 06:55:23 -0600
Scott Cheloha wrote:
> Build completed, upgrade from resulting bsd.rd completed. I think
> this is ready to commit.
I'm happy to hear that your dual G4 macppc is running and your diff
works. Your clock diff doesn't conflict with my incomplete suspend
diff,
gt; - */
> - while (ci->ci_lasttb < prevtb) {
> - ci->ci_lasttb += tick_increment;
> - clock_count.ec_count++;
> - hardclock((struct clockframe *)frame);
> - }
> -
> - while (nstats-- > 0)
> - statclock((struct clockframe *)frame);
> -
> + clockintr_dispatch(frame);
> intr_disable();
> splx(s);
> }
> @@ -164,25 +145,7 @@ decr_intr(struct trapframe *frame)
> void
> setstatclockrate(int newhz)
> {
> - uint64_t stat_increment;
> - uint64_t min_increment;
> - uint32_t var;
> - u_long msr;
> -
> - msr = intr_disable();
> -
> - stat_increment = tb_freq / newhz;
> - var = 0x4000; /* really big power of two */
> - /* Find largest 2^n which is nearly smaller than statint/2. */
> - min_increment = stat_increment / 2 + 100;
> - while (var > min_increment)
> - var >>= 1;
> -
> - /* Not atomic, but we can probably live with that. */
> - statmin = stat_increment - (var >> 1);
> - statvar = var;
> -
> - intr_restore(msr);
> + clockintr_setstatclockrate(newhz);
> }
>
> void
--
George Koehler
On Sun, 16 Oct 2022 18:05:28 +0200
Mark Kettenis wrote:
> The consensus is that calling prsignal() from interrupt context isn't
> safe. See dev/fdt/dapmic.c for a way to avoid that.
I put prsignal() in interrupt context after "grep -R 'prsignal.*USR2'"
found other files that might do the same,
This diff will add a few features to the macppc kernel:
- sysctl hw.power will be set to 0 or 1 when I unplug or plug in
my PowerBook's AC adapter.
- sysctl machdep.lidaction and machdep.pwraction will exist.
- The default machdep.pwraction=1 will power off my macppc when I
push the
On Tue, 2 Aug 2022 19:55:02 +0200 (CEST)
Mark Kettenis wrote:
> > Date: Tue, 2 Aug 2022 11:56:59 -0500
> > From: Scott Cheloha
> >
> > At what point do we consider the patch safe? Have you seen any hangs?
> >
> > Wanna run with it another week?
>
> Sorry. I'm not set up to run my powerpc64
On Wed, 29 Jun 2022 22:47:19 -0500
Scott Cheloha wrote:
> To be perfectly clear, you are concerned about this scenario:
>
> > > + if (ci->ci_dec_deferred && newcpl < IPL_CLOCK) {
> > > + ppc_mtdec(0);
>
> /* DEC interrupt fires *here*. */
> /* We jump to decrint() and then
Hi. I have a question about splx, below.
On Thu, 23 Jun 2022 21:58:48 -0500
Scott Cheloha wrote:
> My machine uses openpic(4). I would appreciate tests on a
> non-openpic(4) Mac, though all tests are appreciated.
We only run on New World Macs, and the only ones without openpic(4)
might be
F test.c
> 0000 T test_fn
>
> and it makes libtool(1) happy (LT/Archive.pm: get_symbollist
> function), and it makes librsvg build happy (which is playing with
> symbols at build time), and it should makes aja@ happy too.
>
> Comments or OK ?
> --
> Sebastien Marie
>
--
George Koehler
if (rv != 0)
> continue;
> -
> - if (bs == 0 /* || ba == 0 */) {
> + if (bs == 0 || ba == 0 ) {
> /* ignore this entry */
> } else if (hasmem == 0) {
> /*
>
--
George Koehler
Hello tech list,
OpenBSD's libm is missing logbl(3) function on archs where long double
is double. The missing logbl breaks my builds of "NEW: devel/dtools"
(ports list) on macppc and powerpc64. I guess that other software
avoids logbl and prefers ilogbl(3) or frexp(3).
This diff adds logbl
On Wed, 19 May 2021 00:27:51 -0400
George Koehler wrote:
> Here's my new diff. It is a copy of what I sent to ppc@ a moment ago.
> I would ask, "Is it ok to commit?", but while writing this mail, I
> found a 2nd potential problem with memory barriers, so I will need to
&
On Thu, 13 May 2021 02:20:45 -0400
George Koehler wrote:
> My last diff (11 May 2021) still has a potential problem with memory
> barriers. I will mail a new diff if I think of a fix.
Here's my new diff. It is a copy of what I sent to ppc@ a moment ago.
I would ask, "Is it o
d a 3rd grab.
If we would have the 8 locks, then it might deadlock if 8 cpus each
hold a lock and try to grab a 2nd lock (but a macppc has at most
4 cpus: PPC_MAXPROCS in powerpc/include/cpu.h).
--George
> On Tue, May 11, 2021 at 12:42 AM George Koehler wrote:
>
> > I made a mistake
8:09:00 mpi Exp $*/
/*
+ * Copyright (c) 2021 George Koehler
* Copyright (c) 2007 Artur Grabowski
*
* Permission to use, copy, modify, and distribute this software for any
@@ -22,15 +23,29 @@
#include
#include
-#include
#include
+/*
+ * If __ppc_lock() crosses a page boundary in
On Fri, 7 May 2021 10:31:55 +0200 (CEST)
Mark Kettenis wrote:
> Makes sense to me. It seems ldd always seems to require a little bit
> more coercion to produce non-standard binaries. We use linker scripts
> for the various EFI bootloaders as well.
>
> ok kettenis@
My diff had an extra "pwd"
Hello tech list,
I want macppc to switch from ld.bfd to ld.lld, but there is a problem
when lld links ofwboot or the kernel. I propose to fix it by adding
ld.script for both. These scripts also work with ld.bfd, so I want to
commit my diff at the end of this mail, ok?
lld sets the symbol
lock_machdep.c,v 1.9 2020/04/15 08:09:00 mpi Exp $*/
/*
+ * Copyright (c) 2021 George Koehler
* Copyright (c) 2007 Artur Grabowski
*
* Permission to use, copy, modify, and distribute this software for any
@@ -22,15 +23,29 @@
#include
#include
-#include
#include
+/*
On Thu, 22 Apr 2021 15:38:53 +0200
Martin Pieuchot wrote:
> Diff below remove the KERNEL_LOCK()/UNLOCK() dance from uvm_fault() for
> both amd64 and sparc64. That means the kernel lock will only be taken
> for lower faults and some amap/anon code will now run without it.
I made a similar diff,
On Thu, 18 Mar 2021 20:22:44 + (UTC)
Mark Lumsden wrote:
> This diff was first seen on the tech list just under a year ago. It is
> from Philip K. and was tested by George Koehler. I have modified it
> slightly. From Philips original post:
You sent, or I received, your diff w
On Fri, 26 Feb 2021 11:31:07 -0800
Andrew Hewus Fresh wrote:
> On Sat, Feb 20, 2021 at 02:11:45PM -0800, Andrew Hewus Fresh wrote:
> > I've probably missed making it in for 6.9, but it is again time for
> > testing a perl update so it can become /usr/bin/perl
>
> It was pointed out that there
NET_UNLOCK();
> - return (error);
> - default:
> - return (ENOPROTOOPT);
> - }
> - /* NOTREACHED */
> + NET_LOCK();
> + error = sysctl_bounded_arr(gre_vars, nitems(gre_vars), name,
> + namelen, oldp, oldlenp, newp, newlen);
> + NET_UNLOCK();
> + return error;
> }
>
> static inline int
> --
> 2.29.2
>
--
George Koehler
return (EOPNOTSUPP);
> + return (sysctl_bounded_arr(ddb_vars, nitems(ddb_vars), name,
> + namelen, oldp, oldlenp, newp, newlen));
> }
> /* NOTREACHED */
> }
> --
> 2.29.2
>
--
George Koehler
On Wed, 2 Dec 2020 01:59:00 +0100
Noth wrote:
> Disk: sd0 Usable LBA: 34 to 4000797326 [4000797360 Sectors]
> #: type [ start: size ]
>
> 0: EFI Sys
On Mon, 23 Nov 2020 22:59:19 -0500
George Koehler wrote:
> My macppc can now build, link,
> and boot the GENERIC kernel with either ld.bfd or ld.lld.
ld.lld with my diff can link macppc kernels GENERIC, GENERIC.MP, and
RAMDISK, and I can boot and run them, but all macppc kernels from ll
With this diff, lld can link macppc's kernel.
The first part of the diff adds R_PPC_ADDR24 to lld. I didn't find
code in upstream lld's git for R_PPC_ADDR24. We need R_PPC_ADDR24 for
"ba" and "bla" in locore.S.
The second part edits the kernel's Makefile.macppc. I add gapdummy
(like in
>// spec says references from outside the group to a STB_LOCAL symbol are
> not
>// allowed. Work around the bug.
> - if (config->emachine == EM_PPC64 &&
> - cast(sym).discardedSecIdx != 0 && sec.name == ".toc")
> + //
> + // PPC32 .got2 is similar but cannot be fixed. Multiple .got2 is infeasible
> + // because .LC0-.LTOC is not representable if the two labels are in
> different
> + // .got2
> + if (cast(sym).discardedSecIdx != 0 &&
> + (sec.name == ".got2" || sec.name == ".toc"))
> return false;
>
>bool isWarning =
>
--
George Koehler
On Wed, 4 Nov 2020 00:21:15 -0500
George Koehler wrote:
> Hello tech list,
>
> clang for 32-bit powerpc has a bug that breaks va_arg(3) when the
> argument type is an object or block in Objective-C. This breaks
> GNUstep on macppc. This clang diff fixes GNUstep. Objective-C
Your ilogb fix is ok gkoehler@
On Sat, 31 Oct 2020 16:09:07 +0100 (CET)
Mark Kettenis wrote:
> - Dropping the amd64 and i386 versions. Fixing the corner cases in
> assembly is hard, and the C implementation should be fast enough for
> regular floating-point values.
The amd64 and i386
On Wed, 4 Nov 2020 00:21:15 -0500
George Koehler wrote:
> I posted this diff at https://reviews.llvm.org/D90329 ...
>
> ok to commit? --George
No, I withdraw my diff. In about a week, I might have a better diff
that also fixes va_arg with some C++ types. This only affects 32-bi
Hello tech list,
clang for 32-bit powerpc has a bug that breaks va_arg(3) when the
argument type is an object or block in Objective-C. This breaks
GNUstep on macppc. This clang diff fixes GNUstep. Objective-C uses
pointers to represent objects and blocks, so this diff tells clang's
va_arg to
Moving from bugs to tech.
cwen reported that base-clang crashed on macppc in graphics/babl and
emulators/mednafen [1]. I observed that clang crashed on powerpc64 in
mednafen. I now propose to backport a commit in llvm 11.x git [2] to
prevent these crashes. This change affects other arches.
On Tue, 11 Aug 2020 15:11:13 -0500
Your_Name wrote:
> From 6990aec14f90638e1c433a71a30e4720da45ec86 Mon Sep 17 00:00:00 2001
> From: Jordan
> Date: Tue, 11 Aug 2020 14:51:17 -0500
> Subject: [PATCH 1/2] Add DMA remapping support for Intel VT-d and AMD Vi
>
> I have been working on adding
Triple.isOSLinux(); }
> - bool isTargetOpenBSD() const { return TargetTriple.isOSOpenBSD(); }
>
>bool isDarwinABI() const { return isTargetMachO() || isDarwin(); }
>bool isAIXABI() const { return TargetTriple.isOSAIX(); }
--
George Koehler
On Tue, 14 Jul 2020 11:59:14 +0200 (CEST)
Mark Kettenis wrote:
> Yeah, one possible approach would be to increment ogen by two. A
> little bit easier to check that they can never be the same since one
> is always odd and the other is always even.
>
> Another possible approach would be to
On Mon, 13 Jul 2020 01:18:14 -0500
Scott Cheloha wrote:
> To review, the update protocol is:
>
> 1. Set tk_generation to zero; the update has begun.
>
> 2. Memory barrier. The side effects of step (1) are "visible" to
>other CPUs before those of step (3).
>
> 3. Update the other tk_*
On Mon, 13 Jul 2020 10:24:49 +0300
Paul Irofti wrote:
> I am assuming you tested on amd64. Mind sharing the dmesg? Could this be due
> to the lack of RDTSC serialization in userland?
I got the problem on my 4-core amd64 and on a 1-cpu macppc. Here's my
amd64 dmesg. In my next mail, I will
Hello tech list,
My CLOCK_MONOTONIC can jump backwards. It looks like a problem with
tk_generation in the user timekeep page. If tk_offset_count and
tk_offset change but tk_generation doesn't change, then libc can mix
old and new values and calculate a bogus time.
This diff tries to fix it.
On Wed, 8 Jul 2020 14:26:02 +0200 (CEST)
Mark Kettenis wrote:
> > From: Paul Irofti
> > Reads OK to me. Please make the adjustments to static functions that
> > kettenis@ mentioned in the alpha thread.
>
> To add to that:
>
> * TC_LAST isn't needed, so kill that
> * tc_get_timecount
>
>
On Wed, 8 Jul 2020 11:32:09 -0500
Scott Cheloha wrote:
> On Wed, Jul 08, 2020 at 09:36:03AM -0600, Theo de Raadt wrote:
> > Ugly test program (not showing it) seems to show syncronized clocks on
> > powerpc, or at least closely sycronized. It might be one register.
>
> I guess I'll share mine,
On Sat, 27 Jun 2020 01:27:14 +0200
Christian Weisgerber wrote:
> That function simply copies as many (double)words plus a tail of
> bytes as the length argument specifies. Neither source nor destination
> are checked for alignment, so this will happily run a loop of
> unaligned accesses, which
On Sat, 27 Jun 2020 01:27:14 +0200
Christian Weisgerber wrote:
> I'm also intrigued by this aside in the PowerPC ISA documentation:
> | Moreover, Load with Update instructions may take longer to execute
> | in some implementations than the corresponding pair of a non-update
> | Load instruction
On Mon, 22 Jun 2020 19:12:22 +0300
Paul Irofti wrote:
> New iteration:
>
> - ps_timekeep should not coredump, pointed by deraadt@
> - set ps_timekeep to 0 before user uvm_map for randomization
> - map timekeep before fixup. confirmed by naddy@ that it fixes NULL init
> - initialize va.
This is macppc, goes on top of your diff from
Thu, 11 Jun 2020 16:27:03 +0300.
Do integrate this small diff into your big diff. If you need to
change the macppc code but can't build it, then do the change, and
allow me or someone else to build it. I'm gkoehler@.
macppc is a simple arch: there
This diff is for macppc "model PowerBook5,4". It adds the missing
audio volume control by changing the driver from aoa(4) to snapper(4).
Before the diff, I needed to put my ear near the speaker to check if
audio was playing. After the diff, the speaker was so loud (about
output.level=0.75) that
On Sat, 30 May 2020 19:21:30 +0300
Paul Irofti wrote:
> Here is an updated diff with no libc bump. Please use this one for
> further testing.
Your diff does amd64.
Here is a diff to add macppc. Apply after your diff.
I have only tested clock_gettime(2) with CLOCK_REALTIME,
by doing loops in
On Wed, 29 Apr 2020 21:08:52 +0200 (CEST)
Mark Kettenis wrote:
> Upstream fixed this issue as well. Apparently only ADDE can't be
> legalized (because it is "special") but ADDCARRY can. Do ypu want to
> adjust your diff based on that information?
>
> Either way, ok kettenis@
This adjusted
Moving from bugs@ to tech@,
because some people might miss a clang diff on bugs@.
This diff modifies LLVM's DAGCombiner to skip an optimization if it
would make an illegal ISD::ADDE node. This fixes fatal errors from
powerpc clang when building ports net/libtorrent-rasterbar and
On Thu, 9 Apr 2020 20:05:34 +0200
Martin Pieuchot wrote:
> +void
> +stacktrace_save_at(struct stacktrace *st, unsigned int skip)
> +{
> + vaddr_t lr, sp, lastsp;
> +
> + sp = (vaddr_t)__builtin_frame_address(0);
> + if (!INKERNEL(sp) && !ININTSTK(sp))
> + return;
On Wed, 01 Apr 2020 13:47:58 +0200
phi...@warpmail.net (Philip K.) wrote:
> George Koehler writes:
>
> > C-x C-j doesn't work for me: it does show the dired buffer, but
> > doesn't jump to the file that I was editing.
>
> Looks like that was because I called gotof
Hello tech,
powerpc libunwind is broken on machines without altivec. It crashes
SIGILL when code (built with base-clang++) throws a C++ exception,
because libunwind always saves the altivec registers. You don't have
altivec if sysctl machdep.altivec is 0. I believe that G3 cpus don't
have
On Mon, 30 Mar 2020 22:39:48 +0200 (CEST)
Mark Kettenis wrote:
> P.S. Userland seems to be in good shape as well. I built and rebuilt
> the world with clang. That was on a kernel built with gcc, so
> I'm repeating that now with a kernel built with clang.
That's good. My iMac G3 is
On Mon, 30 Mar 2020 15:11:14 +0200
phi...@warpmail.net (Philip K.) wrote:
> I apologise in case there are any problems applying this patch, I'm
> (sadly) not a OpenBSD user so I developed the change using the Linux
> port and then copied the changes. I optimistically assumed that this
> should
Here is a new diff for macppc's ofw_stack() problem, without using
__attribute__((noinline)). I use this diff to build and run a macppc
kernel with clang. It also works with gcc.
The kernel did 3 steps to prepare an Open Firmware call:
1. turn off interrupts (EE and RI in msr)
2. move the
On Tue, 17 Mar 2020 13:23:28 -0400
George Koehler wrote:
> clang -static -L. -nopie -o instbin instbin.o dd.lo ...
> /usr/bin/ld: dd.lo(.text+0x14): R_PPC_PLTREL24 reloc against local symbol
>
> ...
>
> Passing -M to crunchgen(8), as we do on {longsoon,octeon,sgi}, m
On Mon, 16 Mar 2020 19:13:13 -0600
"Theo de Raadt" wrote:
> How are the bootblocks faring?
>
> And userland?
ofwboot with clang works for me.
I failed to make bsd.rd (in src/distrib/macppc/ramdisk) with clang,
but I don't remember exactly what I did, so I might have been making
it the wrong
gt; u_long scratch;
> u_int64_t tb;
>
> - __asm volatile ("1: mftbu %0; mftb %0+1; mftbu %1;"
> + __asm volatile ("1: mftbu %0; mftb %L0; mftbu %1;"
> " cmpw 0,%0,%1; bne 1b" : "=r"(tb), "=r"(scratch));
> return tb;
> }
--
George Koehler
Hello tech,
This diff solves a problem with pdisk(8): it is disabling the Mac OS 9
drivers on the disk. I use pdisk(8) to share a disk with Mac OS 9 and
OpenBSD macppc. After pdisk(8) disabled my drivers, my Mac OS 9 boot
got stuck at the blinking '?' on the floppy icon. I fixed it by
booting
Hello tech@ list!
With this diff, it becomes possible to build macppc kernel with
base-clang. The default compiler for macppc is base-gcc.
rgc mailed the ppc@ list to report problems with
clang kernel, and got a working kernel with clang -Oz (to stop clang
inlining some functions in
This is the everything diff: it includes the clang diff that I sent to
tech@, plus the major version bumps for libLLVM libc++ libc++abi.
- distrib/sets/lists: put the new versions in the base sets.
- gnu/llvm/tools/clang: -msvr4-struct-return
- gnu/usr.bin/clang/libLLVM, lib/libcxx,
On Tue, 11 Feb 2020 18:58:48 +0100
Jeremie Courreges-Anglas wrote:
> So the steps would be:
> - build and install a new clang
> - bump the major of libc++, build and install it
> - rebuild and reinstall clang
> - build new snap
You are the first person to suggest bumping .so majors; I didn't
On Tue, 11 Feb 2020 15:20:00 +0100
Jeremie Courreges-Anglas wrote:
> fwiw I'm already ok with the diff George sent for ports/devel/llvm.
> I'm mostly ok with this one but it would be nice to know whether
> base-clang can rebuild itself. :)
base-clang can't rebuild itself in the normal way. I
Hello tech list,
This is a diff for base-clang. It would change the powerpc target to
return small structs in registers r3 and r4. This would fix an
incompatibility with gcc in OpenBSD macppc. I fear that if I commit
the diff, I might break snapshot builds. I am looking for help.
I posted
75 matches
Mail list logo