Commit Graph
100 Commits
Author SHA1 Message Date
François Revol dd1454bd96 Defer calling arch_debug_console_init_settings
when we can actually read driver settings :-)
2017-11-20 18:16:54 +01:00
François Revol 7c7390c719 work around "cast specifies signature type" from gcc2
...when build by gcc6 or 7 on my Debian Sid.
2017-11-20 17:18:08 +01:00
François Revol 0835170c80 Actually use the serial port and speed from the kernel settings
Turns out we just reused the already set values, disregarding the new ones.
2017-11-20 11:44:43 +01:00
François Revol 587b70d5cd Add a get_driver_settings debugging tool 2017-11-20 11:23:34 +01:00
François Revol b7fc170ebd MIME: Open Gopher URLs with WebPositive, as we support them now 2017-09-01 22:18:11 +02:00
François Revol e62e979e60 Allow dumping SSL session keys on TRACE_SESSION_KEY
This dumps SSL session keys to a log file specified by the
SSLKEYLOGFILE environment variable.

This permits decrypting SSL trafic in wireshark with a tcpdump
capture for example.
cf.
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Key_Log_Format
https://security.stackexchange.com/questions/35639/decrypting-tls-in-wireshark-when-using-dhe-rsa-ciphersuites/42350#42350
https://wiki.wireshark.org/SSL#Using_the_.28Pre.29-Master-Secret
https://jimshaver.net/2015/02/11/decrypting-tls-browser-traffic-with-wireshark-the-easy-way/

Looks like we miss the required function from SSL...
SSL_SESSION_print_keylog is only in 1.1.0.
Also added dumping of client_random as it's required by wireshark.
2017-05-04 00:56:15 +02:00
François Revol 28fb504bb8 Style fix, also fixes an indentation warning 2016-12-02 05:33:18 +01:00
François Revol 8a6724a0ee makefile-engine: use grep -a for RDEF parsing
ThemeManager has an UTF-8 copyright symbol in its rdef file.
The chroot set up by haikuporter doesn't export anything that would
hint grep to accept UTF-8 as text, so it freaks out...
So we force it to accept anything as text.
2016-11-05 00:55:53 +01:00
François Revol b1e2427d75 glibc: replace extern __inline with __extern_always_inline for ppc
As was done for x86 in hrev49774.
2016-10-22 15:53:57 +02:00
François Revol 72ddc912a6 PPC: make arch_framebuffer.h more like ARM version
Now the only difference is the physical address, which is returned as
phys_addr_t as should be.
2016-10-22 15:53:52 +02:00
François Revol f4dc609dbe U-Boot: PPC: dump the start of the board_data struct
Not so useful but just in case...

Sadly, this struct is both compile-time and arch dependent :-(
2016-10-22 15:53:47 +02:00
François Revol 9e66f03165 U-Boot: PPC: Try to enable unaligned transfers
This however doesn't help with the 64bit float operations that
gcc emits when assigning the physical framebuffer address in kernel_args,
which is a packed struct...
2016-10-22 15:53:38 +02:00
François Revol e57c83d9e4 U-Boot: PPC: make the shift calculation more obvious
It's the 11th bit, counting from the MSB, on the top 16 bits.
2016-10-22 15:53:24 +02:00
François Revol 1fe7e6711f PPC: call debug_uart_from_fdt with C++ linkage 2016-10-22 15:53:20 +02:00
François Revol 11642b7f2c PPC: arch_asm.S: style fix
Capitalize TODO & FIXME, gedit prefers those
2016-10-22 15:53:15 +02:00
François Revol 33c594f0c7 PPC: U-Boot: fix gUBootOS offset
Since the removal of some other variables we were overwriting some random function.
2016-10-22 15:53:07 +02:00
François Revol ffb9ffb68d PPC: Use FUNCTION_END in arch_asm.S 2016-10-22 15:52:51 +02:00
François Revol 9d0098ec04 ppc/paging: Convert to new-style CPU management
* Aka, post-scheduler changes
* Luckily PPC paging code is very similar to x86 paging now
2016-10-22 15:52:46 +02:00
François Revol f5f6d7e600 PPC: compile arch_exception*.S in cpu-specific objects 2016-10-22 15:52:38 +02:00
François Revol 8dc55498fa PPC: rename arch_exceptions_44x.S to arch_exceptions_440.S 2016-10-22 15:52:29 +02:00
François Revol 094525151d PPC: Split cpu-specific files into separate objects 2016-10-22 15:52:16 +02:00
François Revol d66182742f PPC: Stub out 460 paging classes 2016-10-22 15:52:08 +02:00
François Revol 62caef87ce PPC: Restructure paging stuff to match other platforms
First attempt.

Totally untested.
2016-10-22 15:51:57 +02:00
François Revol e409118307 configure: pass proper gdb target for m68k 2016-10-20 13:30:33 +02:00
François Revol 4da6cf8403 configure: allow building GDB along with the buildtools
from a stock GDB source tree.

I was getting tired of doing it manually.

Note the prefix is not exactly the same as the buildtools since the
machine triplet is different, but it's not an issue.

Tested with arm and ppc with GDB 7.8. Might need patching gdbTarget for other archs,
as stock GDB doesn't know about Haiku.
2016-10-20 11:14:50 +02:00
François Revol 96c72d6933 typo 2016-10-20 11:14:50 +02:00
François Revol faf79e7f78 Add a little script to configure a dev VM
I wrote that long ago for my packaging tutorial at RMLL, would probably
needs some fixing.
2016-10-20 01:04:37 +02:00
François Revol 495efc382b loader: Drop the HashMap for partition lookup by id
The HashMap constructor was called before the heap is initialized,
ending up calling malloc from the OpenHashMap constructor.

Oddly it was still working on x86 but broke other platforms.

Instead we add a Lookup() static method to Partition,
which by default walks gPartitions for the id,
and recursively calls itself on the children lists.

This means we must add a partition even temporarily to gPartitions
before Scan()ing it though.

Signed-off-by: François Revol <[email protected]>
2016-09-02 19:02:33 +12:00
François Revol 8ddcab705e geode: fix build (atomics not volatile anymore) 2016-08-06 22:12:20 +02:00
François Revol d4cfae74c9 opensound: quit the node threads before recycling buffers on dtor
This works around a KDL in the driver due to the buffer address passed
to write() being unmapped in the destructor, and the driver doesn't
properly checks those yet (BeOS used to lock_memory() on read/write buffers).
2016-08-06 20:10:28 +02:00
François Revol 63b8635e04 pc_serial: add some references 2016-08-03 20:09:51 +02:00
François Revol e0a322db92 netresolv: remove asserts from inet_pton()
There are still asserts in inet_pton4 and 6 anyway.

libgit2's tests expect inet_pton() to fail with EAFNOSUPPORT on unsupported
address families instead of crashing...
2016-07-26 23:52:29 +02:00
François Revol 7f6136828c Add more X11 packages including libxpm
inputproto, kbproto, libx11, libxpm, xextproto, xtrans.

Updated xproto.

Now maybe I can get xpm icons in my XEmacs toolbars?
2016-07-25 00:35:53 +02:00
François Revol 02283e080c M68K: drop the custom C arch_cpu_user_mem*() for the default impl
I didn't notice there was a C++ version that didn't require writing asm.

I'll have to write them anyway for speed someday.
2016-07-20 21:57:19 +02:00
François Revol 169349c98f M68K: more SMP stubbing
We'll very much likely never support SMP on M68K...
(unless someone has an SMP machine to donate? :D)
2016-07-20 21:56:15 +02:00
François Revol ad4b06aa75 m68k/paging: Convert to new-style CPU management
* Aka, post-scheduler changes
* Luckily M68K paging code is very simular to x86 paging
2016-07-20 21:28:56 +02:00
François Revol 9df4533caa M68K: use the updated atomic semantics
* Use atomic_get_and_set to return the old value
* Atomics are no longer volatile
2016-07-20 21:26:32 +02:00
François Revol a462159ce3 M68K: Update to new system_info structures 2016-07-20 21:26:12 +02:00
François Revol 7cd7ba758c M68K: fix implicit casts of fault handler 2016-07-20 21:07:26 +02:00
François Revol 830fd19eb5 M68K: Fix spinlock initialization 2016-07-20 21:06:38 +02:00
François Revol d26fd5f68d M68K: drop the platform_type field, the enum is gone from OS.h 2016-07-20 20:31:14 +02:00
François Revol c094f04537 M68K: dos2unix some files
For some reason they used CR-LF.
2016-07-20 20:27:08 +02:00
François Revol 990d34efdd M68K: add arch_cpu_idle and arch_cpu_pause inline stubs
Remove the stub from arch_cpu.cpp

We might want to implement a 040 CPU module providing idle using LPSTOP.
2016-07-20 20:26:29 +02:00
François Revol 7ab9993a18 M68K: Add missing defines
No idea for cache level.

On 030 and 040 a cache line is 16 bytes.
2016-07-20 20:26:29 +02:00
François Revol 58820fadb1 M68K: update bootstrap packages version 2016-07-20 20:26:29 +02:00
François Revol 3805f72225 M68K: add arch_atomic.h 2016-07-20 20:26:29 +02:00
François Revol 47a20cd6d1 M68K: turn #warnings into comments in public headers
The warnings made those headers and those including them not detectable
by libiberty's configure because of the way it checked for them.

This fixes the gcc build.
2016-07-20 20:26:29 +02:00
François Revol 181391c106 ARM: Add TODO on barrier calls, we might need to do more here
They look suspiciously empty.
2016-07-20 18:53:24 +02:00
François Revol 836a148321 dev-perso: also check for lowercase todo[.org] 2016-05-22 21:06:19 +02:00
François Revol 1e3ca5cef9 libusb_compat: add gcc4 package 2016-03-15 01:01:48 +01:00
François Revol e89ef1fef7 U-Boot: TRACE fdt_serial instead of dprintf
and disable it by default (it would hang on some platforms anyway).
2016-02-26 22:59:33 +01:00
François Revol c82af4bebe U-Boot: try to use virtual-reg to get the UART
XXX: possibly only for _BOOT_MODE?
2016-02-26 22:58:45 +01:00
François Revol 14cfccd011 U-Boot: add a 'physical' arg to fdt_get_device_reg()
If false, try to use the virtual-reg property first.
2016-02-26 22:58:17 +01:00
François Revol 73ef47f70a loader: TRACE undefined symbols
While the kernel shouldn't have any, it happens on platforms missing new features.

Make it explicit.
2016-02-26 22:57:06 +01:00
François Revol 8c5db3649d Workspaces: Add switch-on-wheel user setting
Currently only applies when in a window, not when replicated
(then it always switches).

Feel free to fix (need to create the settings object when replicated).
2016-02-26 21:53:34 +01:00
François Revol afd7c879ee add an App_SDL icon for SDL apps 2016-01-11 00:40:11 +01:00
François Revol 1150f8cbd4 screeninfo: fix warning 2016-01-10 00:18:59 +01:00
François Revol 0e15d112ea screeninfo: iterate using BScreen::SetToNext()
Note it leaves the current object valid on error, so you can't use
IsValid() as the for loop test.
2016-01-10 00:18:59 +01:00
François Revol d780e243ad dev-perso: check for a TODO list and print first 5 items 2016-01-07 23:23:11 +01:00
François Revol 804718bbfb dev-perso: check for git first 2016-01-07 23:19:16 +01:00
François Revol 39d6c466d8 dev-perso: remove unused password stuff 2016-01-07 22:46:58 +01:00
François Revol 5692356be2 usb_disk: add the Zip icon
not used yet, my USB Zip drive seems to have gone to the mechanical valhalla.
2016-01-07 21:38:19 +01:00
François Revol 8dde46a47f Add a Misc_Birthday_Cake icon to celebrate hrev50000 \o/ 2016-01-07 21:13:18 +01:00
François Revol ec684513fe WindowShade: add to regular image 2016-01-07 21:12:17 +01:00
François Revol dc422da1a5 WindowShade: fix build 2016-01-07 21:10:50 +01:00
François Revol b50be529bb Add dpms tool to regular image 2016-01-07 21:04:11 +01:00
François Revol b259ac9c59 Add listfont to the minimum image definition 2016-01-07 18:13:47 +01:00
François Revol 37dd17a4a7 Fix shadows on Misc_Erlenmeyer and App_FLUID 2016-01-07 16:35:28 +01:00
François Revol 5dc097412d dragger: use EXIT_SUCCESS/EXIT_FAILURE macros for clarity 2016-01-07 02:13:41 +01:00
François Revol 82af81ac2e draggers: fix header 2016-01-07 02:13:41 +01:00
François Revol be1b88453c draggers: print usage on unknown arguments
also handle on/off as arguments.
2016-01-07 02:13:41 +01:00
François Revol 32d85aaa97 Add an App_Dropbox icon
A blend of App_Expander_2 and Folder_Virtual for the colors.

Could be used for Dropbox clients like Orphilia.
2016-01-06 13:33:24 +01:00
François Revol 59405aa6be App_FLUID: Set MinLOD of reflexes back to 0
It makes the icon look less flat in 16x16.
2016-01-03 17:48:35 +01:00
François Revol 7121057cb7 Add an App_FLUID icon (FLTK's IDE)
Based on Misc_Erlenmeyer
2016-01-01 22:41:55 +01:00
François Revol 733150c77a Add a Misc_Erlenmeyer icon
Hmm, transparency!
2016-01-01 22:41:55 +01:00
François Revol b23cb01e7c Add a Misc_Milestone icon
How come we didn't have one yet?
2016-01-01 20:25:35 +01:00
François Revol 62aa9bd547 Misc_FreeBSD: fix shadows 2016-01-01 19:49:49 +01:00
François Revol 1eafdb85fe Add a Misc_FreeBSD icon 2016-01-01 19:32:05 +01:00
François Revol 694f80a877 Add an App_LibreOffice icon
Not sure the design looks obvious enough though.
2016-01-01 17:18:08 +01:00
François Revol 340c698e80 Add an App_Lazarus icon 2016-01-01 16:50:01 +01:00
François Revol 4a44a4f15f Add a Misc_Terminal_ncurses icon
Really just to illustrate my next FOSDEM talk ;-)
2016-01-01 16:25:50 +01:00
François Revol c7ae2d8296 Add an Misc_HaikuBook icon 2016-01-01 16:07:47 +01:00
François Revol 3e004e8c20 Add a Misc_BeBook icon 2016-01-01 15:56:58 +01:00
François Revol a5f29c01b4 Misc_Book: add missing object names 2016-01-01 15:49:07 +01:00
François Revol d3eeff20bd Add Be, Be_2 and Zeta Overlay icons
Separated from the Device_Harddisk versions.
2016-01-01 15:44:48 +01:00
François Revol 0b88c85656 Device_Harddisk_Zeta icon: remove unused colors 2016-01-01 15:43:55 +01:00
François Revol 7408c0a8a4 Fix some icon shadows
- Misc_ORICAtmos: the back is larger
- Misc_TARDIS: use a gradient since it also has a light atop
2016-01-01 15:28:30 +01:00
François Revol 1e0e585e44 Add an App_wxWidgets icon just so it's there 2016-01-01 06:37:53 +01:00
François Revol 0fe022fd0d Add a little script to generate a montage of all icons
This needs the 'montage' command from ImageMagick.
(it will install it with pkgman if missing)

It first uses 'translate' to convert Icon-O-Matic files to PNG,
then makes a montage with the icon titles.

Run it from the top source folder under Haiku, it might take a while.
2016-01-01 05:53:38 +01:00
François Revol 805569fcf3 Add an App_FLTK icon for FLTK-based apps 2016-01-01 05:47:12 +01:00
François Revol cc27637f99 Add a Misc_UEFI icon mimicking the UEFI Forum logo 2016-01-01 04:20:33 +01:00
François Revol 98f17b72c1 Add a Misc_ORICAtmos icon
A much needed addition!

ASCII NEW YEAR
2016-01-01 03:15:23 +01:00
François Revol 57346752bb listfont: remove (broken) check for R5 bug 2015-12-30 19:56:01 +01:00
François Revol ffa40c8562 Add package for ThemeManager 2015-12-16 17:25:41 +01:00
François Revol 594187ade2 glibc/ppc: add missing math stuff
hopefully fixing the build for the 53rd time...
2015-09-18 03:59:56 +02:00
François Revol bbdf4c27fa glibc: avoid linking long double math stuff on PPC and M68K 2015-09-18 03:59:56 +02:00
François Revol dab2aa8189 complex.h: fix __NO_LONG_DOUBLE_MATH test
PPC doesn't support long double yet...
2015-09-18 03:59:55 +02:00
François Revol 22dc6b7f47 mpd: update package 2015-09-18 00:27:51 +02:00
François Revol eed4335a85 libmpdclient: update package 2015-09-17 21:19:25 +02:00
François Revol 045af160e7 df: silently accept -h
Traditional Unix 'df' use -h for human readable units.
I always end up typing 'df -h' so it's frustrating to see the usage there.
2015-09-17 00:29:50 +02:00