Axel Dörfler
77cfe0902a
gRoot is now defined in RootFileSystem.h, AddNode() is now called AddVolume().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5100 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5100
2003-10-21 03:59:39 +00:00
Axel Dörfler
6822f1482e
gRoot is now a RootFileSystem, not just a Directory anymore.
...
register_boot_file_system() adds the "boot" link to the root fs.
mount_all_file_systems() now prints out the root directory of the
mounted volumes just for fun (to be removed later).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5099 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5099
2003-10-21 03:58:40 +00:00
Axel Dörfler
ace56d68aa
Removed the AddNode() method from the Directory class.
...
Moved gRoot into the private RootFileSystem header.
Added new register_boot_file_system() function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5098 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5098
2003-10-21 03:55:53 +00:00
Axel Dörfler
f5ab9c12ce
Fixed arch_cpu_global_TLB_invalidate() - it only invalidated the first
...
256K of the available address space.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5097 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5097
2003-10-21 03:39:47 +00:00
Axel Dörfler
622405014e
The init routine doesn't have to make sure that the IP bit of MSR is
...
set since the boot loader already takes care of that.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5096 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5096
2003-10-21 03:38:39 +00:00
Axel Dörfler
6f634c19b6
Fixed a potential overflow bug in ppc_set_page_table().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5095 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5095
2003-10-21 03:37:15 +00:00
Axel Dörfler
c72672b624
Made the computation of the page table hash mask easier to read.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5094 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5094
2003-10-21 03:36:22 +00:00
Axel Dörfler
7fc11e15bb
Some work-in-progress on the MMU functions:
...
- it will now successfully take over the MMU, but it doesn't tell OF
yet about it.
- map_page() will now fill in the page table relative to sSegments[], and
no longer to the segment registers directly (as they might be different
at that time, depending on the OF).
- map_page() will panic if it couldn't find a free slot in the page table
(that's enough for the boot loader)
- finds the exception handlers mapping and sets the kernel args
- rewrote insert_memory_range(); it now actually works in all cases (no
matter if the ranges overlap or not, and it will also join ranges if
possible). The start address will now be round down to page aligment.
- some other small fixes
- the page table is now cleared before use (as of_claim() obviously doesn't
return cleared memory).
- replaced some uint32 with addr_t where it made sense (there are probably
even more places).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5093 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5093
2003-10-21 03:19:01 +00:00
Axel Dörfler
db0fd9726e
Added functions to set and get the segment register (as segment_descriptor).
...
Added constructors to block_address_translation and segment_descriptor
that will clear its memory (could be done more efficiently though, it just
uses memset()).
Added definitions for the MSR (machine state register).
Added tlbsync() macro (direct assembler call).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5092 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5092
2003-10-21 03:07:44 +00:00
Waldemar Kornewald
6b6c29afe6
Fixed flags printing.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5091 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5091
2003-10-20 20:45:48 +00:00
Matthew Wilber
0a3144ad6b
Changed selection box to use a checkered pattern, closer to what Be's ShowImage uses. Stopped using inversion to clear old selections, drawing the bitmap over them instead. Fixed the rect used in setting the view bitmap.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5090 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5090
2003-10-19 01:56:01 +00:00
DarkWyrm
2cd26ed941
Changes to integrate with app_server:
...
Added code to send more than just mouse move messages
Removed the input_server's dependency on local PortLink sources
Broke the BeIDE project by removing the PortLink dependency (oh well) -- see me for a fix if you run into problems building locally
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5089 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5089
2003-10-19 00:46:44 +00:00
DarkWyrm
d6e461f029
Added system color, system font, and decorator update notification
...
Added a little server-side code to handle system color updates
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5088 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5088
2003-10-19 00:03:06 +00:00
DarkWyrm
01490aa446
Added server notification
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5087 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5087
2003-10-18 23:58:59 +00:00
DarkWyrm
6d6540131a
Added a couple of private, internal message defs
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5086 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5086
2003-10-18 23:55:41 +00:00
DarkWyrm
d1c8b508e5
Cruft removal
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5085 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5085
2003-10-18 23:17:34 +00:00
DarkWyrm
c94c672743
cruft removal
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5084 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5084
2003-10-18 23:16:40 +00:00
Matthew Wilber
af2002bf8c
Implemented preliminary selection box skeleton code. Need to add marching ants and connect selection box status to Edit menu.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5083 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5083
2003-10-18 22:58:34 +00:00
DarkWyrm
5eaf1421a5
Tweaks for BPicture compliance
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5082 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5082
2003-10-18 22:45:16 +00:00
DarkWyrm
7d4ebd1ef0
Implemented some more handler code for different BPicture opcodes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5081 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5081
2003-10-18 22:44:44 +00:00
ejakowatz
b07c31a73f
Finished up some scripting-related items.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5080 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5080
2003-10-18 04:55:28 +00:00
beveloper
a33c76090e
RIFF WAV header structures
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5079 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5079
2003-10-17 23:56:13 +00:00
beveloper
ca16f5cb03
start of media kit codec plugin API
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5078 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5078
2003-10-17 23:55:19 +00:00
Axel Dörfler
b912581792
new_file_system() returned a status code, but should have returned
...
a pointer to the file system.
Renamed all static g* variables to s*.
Renamed "mount_id" fields to the higher level "device" (to be able
to compile the file).
Fixed all casting warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5077 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5077
2003-10-17 14:47:15 +00:00
Axel Dörfler
9559a50771
Renamed vfs.c to vfs.cpp to prepare and ease working with the disk
...
device manager (and have more warnings).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5076 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5076
2003-10-17 14:45:07 +00:00
Axel Dörfler
50ba16fccf
Made C++ safe.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5075 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5075
2003-10-17 14:42:45 +00:00
Axel Dörfler
bd77051dc3
Changes due to renaming of vm_translation_map_get_pgdir() to i386_*().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5074 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5074
2003-10-17 14:35:29 +00:00
Axel Dörfler
7221a58854
Fixed some warnings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5073 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5073
2003-10-17 14:05:05 +00:00
Axel Dörfler
4ef2438290
Fixed a warning.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5072 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5072
2003-10-17 14:01:16 +00:00
Axel Dörfler
8c1ae50791
Adoption of Travis' PPC code. Changed where needed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5071 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5071
2003-10-17 13:58:41 +00:00
Waldemar Kornewald
8c911f6ce6
h_errno is now declared in each file that uses it.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5070 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5070
2003-10-17 13:57:33 +00:00
Axel Dörfler
f8e89e479d
Adoption of Travis' PPC code. Changed to our VM structures and slightly
...
different arch-specific CPU functions. Fixed some bugs. Not tested.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5069 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5069
2003-10-17 13:57:28 +00:00
Axel Dörfler
78a4f584f5
Added the addr_t typedef (should replace the commonly used addr type some day).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5068 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5068
2003-10-17 13:49:41 +00:00
Axel Dörfler
14d9cc14d9
Updates caused by renaming vm_translation_map_get_pgdir() to
...
i386_translation_map_get_pgdir().
Fixed some warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5067 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5067
2003-10-17 13:47:12 +00:00
Axel Dörfler
fb7bec78e3
Created a new arch-specific vm_translation.h header - it's not included
...
in this file.
Moved the vm_translation_map_get_pgdir() function to the x86 specific
header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5066 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5066
2003-10-17 13:36:38 +00:00
Axel Dörfler
db5620838a
Moved the vm_translation_map_get_pgdir() function from arch/vm_translation_map.h
...
into this file (and replaced the prefix with i386_).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5065 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5065
2003-10-17 13:35:12 +00:00
Axel Dörfler
61897ef2b1
Stub implementation no longer needed, real implementation will be C++.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5064 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5064
2003-10-17 13:06:24 +00:00
Axel Dörfler
3b912ee405
Stub implementation no longer needed, real implementation will be C++.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5063 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5063
2003-10-17 13:00:07 +00:00
Axel Dörfler
112bea4bac
Added the arch_cpu_sync_icache() function for x86 from NewOS.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5062 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5062
2003-10-17 12:54:34 +00:00
Axel Dörfler
57c3918258
Added the arch_cpu_sync_icache() function from NewOS.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5061 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5061
2003-10-17 12:53:45 +00:00
shadow303
a9af2b0df0
Add GetDrawData function
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5060 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5060
2003-10-16 22:25:06 +00:00
shadow303
c01b1be5a0
Add visible region to layerdata
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5059 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5059
2003-10-16 22:21:19 +00:00
Waldemar Kornewald
0fe962a8b1
Last modification was wrong. The declaration of h_errno was needed to compile libnet.so.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5058 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5058
2003-10-16 18:45:59 +00:00
Axel Dörfler
4790079584
Renamed arch_mmu_alloc_at() to arch_mmu_allocate(), removed arch_mmu_alloc().
...
Added new arch_mmu_free() function (not yet implemented).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5057 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5057
2003-10-16 18:44:18 +00:00
Axel Dörfler
35270fa7d4
Removed unused makefile.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5056 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5056
2003-10-16 18:42:38 +00:00
Axel Dörfler
b858732b90
Fixed a scoping bug in the elf_load_kspace() function (non-critical under
...
normal circumstances, though).
Updated the comment why we have to create the read-only segment as read-write.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5055 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5055
2003-10-16 18:28:10 +00:00
Axel Dörfler
c0c914aeef
Updated rldelf.c due to the changes in elf32.h.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5054 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5054
2003-10-16 18:22:59 +00:00
Axel Dörfler
73ebb119f3
Forgot to check the endian of the ELF header.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5053 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5053
2003-10-16 18:08:04 +00:00
Axel Dörfler
f44f6a045e
Removed test MMU allocation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5052 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5052
2003-10-16 18:07:21 +00:00
Axel Dörfler
2ea8f7d444
Added mmu.cpp to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5051 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev5051
2003-10-16 18:06:25 +00:00